.component-tabs input[type="radio"] {
  display: none;
}

.component-panel {
  display: none;
}

.component-image-placeholder {
  min-height: 180px;
  border: 2px dashed #cbd5e1;
  background: linear-gradient(135deg, #f8fbff 0%, #f1f5f9 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}

.component-image {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  max-height: 280px;
  min-height: 170px;
  margin: 0 auto;
  object-fit: cover;
  object-position: center;
  border-radius: 1.5rem;
  background: #f8fafc;
}

.motherboard-image {
  max-width: 640px;
  max-height: 340px;
  object-fit: contain;
}

.tab-button {
  transition: all 0.2s ease;
}

#cpu-tab:checked ~ aside .tab-button[for="cpu-tab"],
#motherboard-tab:checked ~ aside .tab-button[for="motherboard-tab"],
#ram-tab:checked ~ aside .tab-button[for="ram-tab"],
#gpu-tab:checked ~ aside .tab-button[for="gpu-tab"],
#storage-tab:checked ~ aside .tab-button[for="storage-tab"],
#psu-tab:checked ~ aside .tab-button[for="psu-tab"],
#cooling-tab:checked ~ aside .tab-button[for="cooling-tab"],
#monitor-tab:checked ~ aside .tab-button[for="monitor-tab"] {
  background-color: #111827;
  color: #fff;
  border-color: #111827;
}

#cpu-tab:checked ~ article #cpu-panel,
#motherboard-tab:checked ~ article #motherboard-panel,
#ram-tab:checked ~ article #ram-panel,
#gpu-tab:checked ~ article #gpu-panel,
#storage-tab:checked ~ article #storage-panel,
#psu-tab:checked ~ article #psu-panel,
#cooling-tab:checked ~ article #cooling-panel,
#monitor-tab:checked ~ article #monitor-panel {
  display: block;
}

body {
  margin: 0;
  background-image: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.compatibility-page .compatibility-card {
  border-radius: 1.5rem;
}

.compatibility-page .compatibility-select {
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.15);
}

.compatibility-page .nav-link.active {
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

main {
  padding-top: 0;
}

header.rounded-3xl {
  border-radius: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 0 !important;
}
