.container {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin: 2rem 0;
}

[data-theme='dark'] .container {
  background-color: #111827;
}

/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tab {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s;
  background-color: #f3f4f6;
  color: #374151;
  border: none;
  cursor: pointer;
}

[data-theme='dark'] .tab {
  background-color: #1f2937;
  color: #d1d5db;
}

.tab:hover {
  background-color: #e5e7eb;
}

[data-theme='dark'] .tab:hover {
  background-color: #374151;
}

.tabActive {
  background-color: #2563eb;
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.tabActive:hover {
  background-color: #1d4ed8;
}

/* Visualization */
.visualization {
  min-height: 500px;
}

.visualization h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #111827;
}

[data-theme='dark'] .visualization h3 {
  color: #f9fafb;
}

.subtitle {
  color: #4b5563;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

[data-theme='dark'] .subtitle {
  color: #9ca3af;
}

/* Pyramid */
.pyramid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 0;
}

.pyramidLevel {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.pyramidBlock {
  flex: 1;
  background: linear-gradient(to bottom, #60a5fa, #2563eb);
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}

.pyramidBlock:hover {
  background: linear-gradient(to bottom, #3b82f6, #1d4ed8);
}

.pyramidBlock.selected {
  outline: 4px solid #93c5fd;
  outline-offset: 2px;
  background: linear-gradient(to bottom, #2563eb, #1e40af);
}

.pyramidBlockName {
  font-weight: bold;
  font-size: 0.875rem;
}

.pyramidBlockComplexity {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Workflow */
.workflowTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.workflowTab {
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  transition: all 0.2s;
  background-color: #f3f4f6;
  color: #374151;
  border: none;
  cursor: pointer;
}

[data-theme='dark'] .workflowTab {
  background-color: #1f2937;
  color: #d1d5db;
}

.workflowTab:hover {
  background-color: #e5e7eb;
}

[data-theme='dark'] .workflowTab:hover {
  background-color: #374151;
}

.workflowTabActive {
  background-color: #2563eb;
  color: white;
}

.workflow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
}

.workflowNode {
  background-color: #3b82f6;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  text-align: center;
  font-weight: 600;
  min-width: 200px;
}

.workflowNodeFinal {
  background-color: #10b981;
}

.workflowArrow {
  font-size: 1.875rem;
  color: #9ca3af;
}

[data-theme='dark'] .workflowArrow {
  color: #4b5563;
}

/* Matrix */
.matrixWrapper {
  overflow-x: auto;
}

.matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.matrix th,
.matrix td {
  border: 1px solid #d1d5db;
  padding: 0.5rem;
  text-align: center;
}

[data-theme='dark'] .matrix th,
[data-theme='dark'] .matrix td {
  border-color: #374151;
}

.matrix th {
  background-color: #f3f4f6;
  font-weight: 600;
  color: #111827;
}

[data-theme='dark'] .matrix th {
  background-color: #1f2937;
  color: #f9fafb;
}

.matrixRowHeader {
  background-color: #f9fafb;
  font-weight: 600;
  text-align: left;
  color: #111827;
}

[data-theme='dark'] .matrixRowHeader {
  background-color: #1f2937;
  color: #f9fafb;
}

.matrixSelf {
  background-color: #e5e7eb;
}

[data-theme='dark'] .matrixSelf {
  background-color: #374151;
}

.matrixActive {
  background-color: #bbf7d0;
  font-weight: bold;
  color: #111827;
}

[data-theme='dark'] .matrixActive {
  background-color: #064e3b;
  color: #f9fafb;
}

/* Scatter Plot */
.scatter {
  @apply relative p-8;
  min-height: 500px;
}

.scatterYLabel {
  @apply absolute left-0 top-1/2 transform -translate-y-1/2 -rotate-90;
  @apply text-sm font-semibold text-gray-700 dark:text-gray-300;
}

.scatterXLabel {
  @apply absolute bottom-0 left-1/2 transform -translate-x-1/2;
  @apply text-sm font-semibold text-gray-700 dark:text-gray-300;
}

.scatterPlot {
  @apply ml-12 mb-12 relative bg-gray-50 dark:bg-gray-800 border-2;
  @apply border-gray-300 dark:border-gray-700 rounded-lg;
  height: 400px;
  width: calc(100% - 48px);
}

.scatterGridH,
.scatterGridV {
  @apply absolute border-gray-200 dark:border-gray-700;
}

.scatterGridH {
  @apply w-full border-t;
}

.scatterGridV {
  @apply h-full border-l;
}

.scatterPoint {
  @apply absolute transform -translate-x-1/2 -translate-y-1/2 cursor-pointer;
}

.scatterPoint::before {
  content: '';
  @apply w-4 h-4 bg-blue-600 rounded-full border-2 border-white shadow-lg;
  @apply block;
}

.scatterPoint.selected::before {
  @apply w-6 h-6 bg-blue-700 ring-4 ring-blue-300;
}

.scatterLabel {
  @apply absolute left-6 top-0 whitespace-nowrap bg-white dark:bg-gray-800;
  @apply px-2 py-1 rounded shadow-md text-xs font-semibold;
  @apply border border-gray-300 dark:border-gray-600;
  @apply text-gray-900 dark:text-gray-100;
}

/* Info Panel */
.info {
  @apply mt-6 bg-blue-50 dark:bg-blue-900/20 rounded-lg p-4;
  @apply border-2 border-blue-200 dark:border-blue-800;
}

.infoHeader {
  @apply flex justify-between items-center mb-3;
}

.infoName {
  @apply text-lg font-bold text-gray-900 dark:text-gray-100;
}

.infoClose {
  @apply text-2xl text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200;
  @apply cursor-pointer transition-colors;
  @apply bg-transparent border-none;
}

.infoContent {
  @apply space-y-2;
}

.infoItem {
  @apply text-sm text-gray-700 dark:text-gray-300;
}

.infoItem strong {
  @apply text-gray-900 dark:text-gray-100;
}

/* Badges */
.badge {
  @apply inline-block px-2 py-1 rounded-full text-xs font-semibold;
}

.badgenone {
  @apply bg-gray-200 dark:bg-gray-700 text-gray-800 dark:text-gray-200;
}

.badgelight {
  @apply bg-yellow-200 dark:bg-yellow-900 text-yellow-900 dark:text-yellow-100;
}

.badgeheavy {
  @apply bg-red-200 dark:bg-red-900 text-red-900 dark:text-red-100;
}
