/* ============================================
   COMPACT SIDEBAR DESIGN
   Minimal, space-efficient, functional
   ============================================ */

/* Compact Header */
.sidebar-compact-header {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.sidebar-group-title-compact {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
  line-height: 1.2;
}

.sidebar-group-badge-compact {
  display: inline-block;
  padding: 3px 8px;
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Stats Row */
.sidebar-stats-row {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 12px;
  padding: 8px;
  background: #f9fafb;
  border-radius: 6px;
}

.sidebar-stat-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.sidebar-stat-compact .stat-icon {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.sidebar-stat-compact .stat-label {
  font-size: 9px;
  color: #6b7280;
  text-transform: lowercase;
  font-weight: 500;
}

/* Compact Navigation */
.sidebar-nav-compact {
  margin-bottom: 12px;
}

.sidebar-nav-link-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 4px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  color: #374151;
  transition: all 0.15s ease;
}

.sidebar-nav-link-compact:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  transform: translateX(1px);
}

.sidebar-nav-link-compact svg {
  flex-shrink: 0;
  color: #6b7280;
}

/* Creator Block */
.sidebar-creator-compact-block {
  margin-bottom: 12px;
  padding: 8px 10px;
  background: #f9fafb;
  border-radius: 6px;
}

.creator-label {
  font-size: 10px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.creator-info-compact {
  display: flex;
  align-items: center;
  gap: 8px;
}

.creator-avatar-mini {
  flex-shrink: 0;
}

.creator-avatar-mini img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

.creator-details-compact {
  flex: 1;
  min-width: 0;
}

.creator-name-compact {
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}

.creator-date-compact {
  font-size: 10px;
  color: #6b7280;
}

/* Members Block */
.sidebar-members-compact-block {
  margin-bottom: 12px;
  padding: 8px 10px;
  background: #f9fafb;
  border-radius: 6px;
}

.members-label-compact {
  font-size: 10px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.members-avatars-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.member-avatar-micro {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
}

.member-avatar-micro img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

.member-fallback-micro {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #059669;
}

/* Controls */
.sidebar-controls-compact {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.sidebar-control-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-control-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.sidebar-control-btn svg {
  color: #6b7280;
}

/* Action Button */
.sidebar-action-form {
  margin: 0;
}

.sidebar-action-compact {
  width: 100%;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-action-compact.join {
  background: #10b981;
  color: white;
}

.sidebar-action-compact.join:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.sidebar-action-compact.leave {
  background: #ef4444;
  color: white;
}

.sidebar-action-compact.leave:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

/* Responsive */
@media (max-width: 1200px) {
  .sidebar-stats-row {
    flex-direction: column;
    gap: 6px;
  }
  
  .sidebar-stat-compact {
    flex-direction: row;
    justify-content: space-between;
    padding: 6px 8px;
    background: #ffffff;
    border-radius: 4px;
  }
}
