* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans", sans-serif;
  background: linear-gradient(180deg, #040918 0%, #091540 100%);
  color: hsl(0, 0%, 93%);
  min-height: 100vh;
  padding: 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: hsl(226, 25%, 17%);
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  width: 32px;
  height: 32px;
  background: hsl(3, 86%, 64%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo::before {
  content: "";
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  position: absolute;
}

.logo::after {
  content: "";
  width: 8px;
  height: 8px;
  background: hsl(3, 86%, 64%);
  border-radius: 50%;
  position: absolute;
}

.header h1 {
  font-size: 1.25rem;
  font-weight: 500;
  color: hsl(0, 0%, 93%);
}

.theme-toggle {
  background: hsl(225, 23%, 24%);
  border: none;
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  color: hsl(0, 0%, 93%);
}

.main-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.extensions-section {
  flex: 1;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: hsl(0, 0%, 93%);
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
}

.tab {
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tab.active {
  background: hsl(3, 86%, 64%);
  color: white;
}

.tab:not(.active) {
  background: hsl(225, 23%, 24%);
  color: hsl(0, 0%, 78%);
}

.tab:not(.active):hover {
  background: hsl(226, 11%, 37%);
}

.extensions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.extension-card {
  background: hsl(225, 23%, 24%);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.extension-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.extension-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.extension-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(227, 75%, 14%);
}

.extension-info h3 {
  font-size: 1.125rem;
  font-weight: 500;
  color: hsl(0, 0%, 93%);
  margin-bottom: 0.25rem;
}

.extension-info p {
  font-size: 0.875rem;
  color: hsl(0, 0%, 78%);
  line-height: 1.4;
}

.extension-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.remove-btn {
  background: none;
  border: none;
  color: hsl(0, 0%, 78%);
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.remove-btn:hover {
  background: hsl(226, 25%, 17%);
  color: hsl(0, 0%, 93%);
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: hsl(226, 11%, 37%);
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.toggle-switch.active {
  background: hsl(3, 86%, 64%);
}

.toggle-switch::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
}

.toggle-switch.active::before {
  transform: translateX(20px);
}

/* Extension icon colors */
.icon-green {
  background: hsl(142, 76%, 73%);
}
.icon-blue {
  background: hsl(199, 89%, 48%);
}
.icon-pink {
  background: hsl(322, 100%, 66%);
}
.icon-purple {
  background: hsl(263, 55%, 52%);
}
.icon-cyan {
  background: hsl(180, 62%, 55%);
}
.icon-orange {
  background: hsl(25, 97%, 53%);
}
.icon-teal {
  background: hsl(166, 100%, 37%);
}

/* Responsive design */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  .header {
    padding: 1rem;
  }

  .main-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .section-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .extensions-grid {
    grid-template-columns: 1fr;
  }

  .filter-tabs {
    flex-wrap: wrap;
  }
}

.attribution {
  font-size: 11px;
  text-align: center;
  margin-top: 3rem;
  color: hsl(0, 0%, 78%);
}

.attribution a {
  color: hsl(228, 45%, 44%);
}
