/**
 * FeatureLayout Styles
 */

/* Loading Container */
.loadingContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
  gap: 1rem;
  color: var(--text-secondary, #666);
}

.loadingSpinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color, #e0e0e0);
  border-top-color: var(--primary-color, #2563eb);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Error Container */
.errorContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
}

.errorIcon {
  font-size: 3rem;
}

.errorContainer h2 {
  margin: 0;
  color: var(--text-primary, #1a1a1a);
  font-size: 1.5rem;
  font-weight: 600;
}

.errorContainer p {
  margin: 0;
  color: var(--text-secondary, #666);
  max-width: 400px;
}

.errorLink {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color, #2563eb);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s;
}

.errorLink:hover {
  background: var(--primary-hover, #1d4ed8);
}

/* Feature Layout */
.featureLayout {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

/* Feature Header */
.featureHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: var(--surface-color, #f8f9fa);
  border-bottom: 1px solid var(--border-color, #e0e0e0);
  flex-shrink: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary, #666);
}

.separator {
  color: var(--border-color, #d0d0d0);
}

.mandateName {
  color: var(--text-tertiary, #888);
}

.featureName {
  color: var(--text-secondary, #666);
  font-weight: 500;
}

.instanceName {
  color: var(--text-primary, #1a1a1a);
  font-weight: 600;
}

.roleIndicator {
  display: flex;
  align-items: center;
}

.roleBadge {
  padding: 0.25rem 0.75rem;
  background: var(--primary-light, #e0e7ff);
  color: var(--primary-color, #2563eb);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Feature Content */
.featureContent {
  flex: 1;
  overflow: auto;
  padding: 1.5rem;
}

/* Dark Theme */
:global(.dark-theme) .featureHeader {
  background: var(--surface-dark, #1e1e1e);
  border-bottom-color: var(--border-dark, #333);
}

:global(.dark-theme) .mandateName {
  color: var(--text-tertiary-dark, #888);
}

:global(.dark-theme) .featureName {
  color: var(--text-secondary-dark, #aaa);
}

:global(.dark-theme) .instanceName {
  color: var(--text-primary-dark, #fff);
}

:global(.dark-theme) .roleBadge {
  background: var(--primary-dark-bg, #1e3a5f);
  color: var(--primary-light, #93c5fd);
}

:global(.dark-theme) .errorContainer h2 {
  color: var(--text-primary-dark, #fff);
}

:global(.dark-theme) .errorContainer p {
  color: var(--text-secondary-dark, #aaa);
}
