/* Workspace Dashboard Styles */

.workspace-dashboard-page {
  padding: 0;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.workspace-info {
  display: flex;
  gap: 16px;
  align-items: center;
}

.workspace-info h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffd700;
  margin: 0;
}

.workspace-color-badge {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  flex-shrink: 0;
}

.workspace-type {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin-top: 4px;
}

.header-actions {
  display: flex;
  gap: 12px;
}

/* Quick Stats */
.quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 8px 16px rgba(139, 92, 246, 0.15);
}

.stat-icon {
  font-size: 2rem;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* Dashboard Content Grid */
.dashboard-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
}

.dashboard-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffd700;
}

/* Activity List */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.activity-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-text {
  color: white;
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.activity-meta {
  display: flex;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
}

/* Upcoming Posts */
.upcoming-posts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upcoming-post-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.upcoming-post-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(139, 92, 246, 0.3);
}

.post-platform-icon {
  font-size: 1.5rem;
}

.post-info {
  flex: 1;
}

.post-content-preview {
  color: white;
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.post-schedule-time {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
}

.badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-warning {
  background: rgba(251, 191, 36, 0.2);
  color: #FCD34D;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Campaigns List */
.campaigns-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.campaign-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.campaign-progress-ring {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: conic-gradient(
    #8B5CF6 0%,
    #8B5CF6 var(--progress),
    rgba(255, 255, 255, 0.1) var(--progress),
    rgba(255, 255, 255, 0.1) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.campaign-progress-ring::before {
  content: '';
  position: absolute;
  width: 38px;
  height: 38px;
  background: #1a1a2e;
  border-radius: 50%;
}

.progress-text {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

.campaign-info {
  flex: 1;
}

.campaign-name {
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.campaign-meta {
  display: flex;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
}

/* Team Members */
.team-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.team-member-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.team-member-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(139, 92, 246, 0.3);
}

.member-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 12px;
}

.member-name {
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.member-role {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.member-stats {
  display: flex;
  gap: 8px;
}

.stat-badge {
  padding: 4px 8px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 6px;
  color: #A78BFA;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    gap: 16px;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .btn {
    flex: 1;
  }

  .quick-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .dashboard-content-grid {
    grid-template-columns: 1fr;
  }

  .team-members-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

