/* Workspace Settings Styles */

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

.settings-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);
}

.settings-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffd700;
  margin: 0 0 4px 0;
}

.settings-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
}

/* Settings Navigation */
.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 24px;
}

.settings-nav-item {
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.settings-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.settings-nav-item.active {
  background: rgba(139, 92, 246, 0.2);
  color: white;
  border-left: 3px solid #8B5CF6;
  padding-left: 13px;
}

/* Settings Content */
.settings-content {
  max-width: 800px;
}

.settings-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-section:last-child {
  border-bottom: none;
}

.settings-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffd700;
  margin-bottom: 8px;
}

.section-description {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin-bottom: 24px;
}

/* Integrations */
.integrations-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.integration-group h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffd700;
  margin-bottom: 16px;
}

.integration-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

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

/* Info Cards */
.info-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-top: 16px;
}

.info-card p {
  margin: 0 0 8px 0;
  color: rgba(255, 255, 255, 0.8);
}

.info-card p:last-child {
  margin-bottom: 0;
}

.text-muted {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.875rem;
}

.integration-info {
  display: flex;
  gap: 12px;
  align-items: center;
}

.integration-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 8px;
}

.integration-name {
  color: white;
  font-weight: 500;
  margin-bottom: 4px;
}

.integration-status {
  font-size: 0.75rem;
}

.integration-actions {
  display: flex;
  gap: 8px;
}

.status-badge.status-connected {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.status-disconnected {
  background: rgba(107, 114, 128, 0.2);
  color: #9CA3AF;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Notification Groups */
.notification-group {
  margin-bottom: 24px;
}

.notification-group h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #ffd700;
  margin-bottom: 12px;
}

/* Billing Overview Card */
.billing-overview-card {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  padding: 24px;
}

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

.plan-badge {
  padding: 8px 16px;
  background: linear-gradient(135deg, #8B5CF6, #EC4899);
  color: white;
  font-weight: 600;
  border-radius: 8px;
  font-size: 0.875rem;
}

.plan-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.billing-details {
  margin-bottom: 24px;
}

.billing-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.billing-row strong {
  color: white;
}

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

/* Danger Zone */
.danger-zone {
  border: 2px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 24px;
  background: rgba(239, 68, 68, 0.05);
}

.danger-zone h2 {
  color: #EF4444;
}

.danger-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.danger-action-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.danger-action-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #ffd700;
  margin-bottom: 4px;
}

.danger-action-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.5);
}

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

  .settings-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .settings-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .settings-nav-item {
    white-space: nowrap;
  }

  .integration-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .integration-actions {
    width: 100%;
  }

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

  .danger-action-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .danger-action-card .btn {
    width: 100%;
  }
}

