/* Home Activity Feed Styles */

.activity-container {
  padding: 24px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Loading and Error States */
.activity-loading,
.activity-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
}

.activity-error .error-icon {
  width: 64px;
  height: 64px;
  color: #ff6b6b;
  margin-bottom: 20px;
}

.activity-error h3 {
  color: #2c3e50;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.activity-error p {
  color: #676879;
  margin-bottom: 24px;
}

/* Activity Header */
.activity-header {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.activity-header-info h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
}

.activity-subtitle {
  font-size: 0.9375rem;
  color: #676879;
  margin: 0;
}

.activity-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.refresh-activity-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  color: #68bbe3;
}

.refresh-activity-btn:hover {
  background: #68bbe3;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.refresh-activity-btn i,
.refresh-activity-btn svg {
  width: 20px;
  height: 20px;
}

.refresh-activity-btn.spinning i,
.refresh-activity-btn.spinning svg {
  animation: spin 0.6s linear;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.activity-filters {
  display: flex;
  gap: 8px;
  background: white;
  padding: 4px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.filter-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #676879;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: #f5f5f5;
  color: #2c3e50;
}

.filter-btn.active {
  background: #68bbe3;
  color: white;
}

/* Activity Feed */
.activity-feed {
  background: white;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-top: 24px;
}

/* Activity Date Groups */
.activity-date-group {
  margin-bottom: 0;
}

.activity-date-group:last-child {
  border-bottom: none;
}

.activity-date-label {
  padding: 16px 24px;
  background: #f8f9fa;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2c3e50;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.activity-items {
  padding: 8px 0;
}

/* Activity Item */
.activity-item {
  display: flex;
  gap: 16px;
  padding: 16px 24px;
  transition: background 0.2s ease;
  border-bottom: 1px solid #f5f5f5;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-item:hover {
  background: #fafbfc;
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-icon i,
.activity-icon svg {
  width: 20px;
  height: 20px;
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-description {
  font-size: 0.9375rem;
  color: #2c3e50;
  line-height: 1.5;
  margin-bottom: 8px;
}

.activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 0.8125rem;
  color: #9ca3af;
}

.activity-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

.activity-time i,
.activity-time svg {
  width: 14px;
  height: 14px;
}

.activity-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

.activity-badge i,
.activity-badge svg {
  width: 12px;
  height: 12px;
}

.activity-badge.personal {
  background: rgba(104, 187, 227, 0.1);
  color: #68bbe3;
}

.activity-badge.team {
  background: rgba(132, 94, 194, 0.1);
  color: #845EC2;
}

.activity-badge.project {
  background: rgba(255, 193, 7, 0.1);
  color: #FFC107;
}

.activity-team,
.activity-project {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #676879;
}

.activity-team i,
.activity-team svg,
.activity-project i,
.activity-project svg {
  width: 14px;
  height: 14px;
}

/* Empty State */
.activity-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  text-align: center;
}

.activity-empty-state i,
.activity-empty-state svg {
  width: 64px;
  height: 64px;
  color: #9ca3af;
  margin-bottom: 20px;
  opacity: 0.5;
}

.activity-empty-state h3 {
  color: #2c3e50;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.activity-empty-state p {
  color: #9ca3af;
  font-size: 0.9375rem;
  max-width: 400px;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .activity-container {
    padding: 20px 24px;
  }
  
  .activity-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .activity-filters {
    width: 100%;
    justify-content: stretch;
  }
  
  .filter-btn {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .activity-container {
    padding: 16px 20px;
  }
  
  .activity-item {
    padding: 12px 16px;
    gap: 12px;
  }
  
  .activity-icon {
    width: 36px;
    height: 36px;
  }
  
  .activity-description {
    font-size: 0.875rem;
  }
  
  .activity-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .activity-filters {
    flex-direction: column;
  }
  
  .activity-header-info h2 {
    font-size: 1.5rem;
  }
  
  .activity-date-label {
    padding: 12px 16px;
  }
}

