:root {
  --primary-900: hsl(227, 75%, 14%);
  --primary-800: hsl(226, 25%, 17%);
  --primary-700: hsl(225, 23%, 24%);
  --primary-600: hsl(226, 11%, 37%);
  --primary-300: hsl(0, 0%, 78%);
  --primary-200: hsl(217, 61%, 90%);
  --primary-100: hsl(0, 0%, 93%);
  --primary-0: hsl(200, 60%, 99%);

  --red-400: hsl(3, 86%, 64%);
  --red-500: hsl(3, 71%, 56%);
  --red-700: hsl(3, 77%, 44%);

  --light-Gradient: linear-gradient(180deg, #ebf2fc 0%, #eef8f9 100%);
  --dark-Gradient: linear-gradient(180deg, #040918 0%, #091540 100%);
  --white: white;
  --black: black;
}
.dark {
}
/* font family */
@font-face {
  font-family: "Noto Sans";
  src: url("./assets/fonts/NotoSans-VariableFont_wdth\,wght.ttf")
    format("opentype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Noto Sans Regular";
  src: url("./assets/fonts/static/NotoSans-Regular.ttf") format("opentype");
  font-weight: normal;
  font-style: normal;
}
/* common styles */
body {
  font-family: "Noto Sans";

  color: var(--primary-0);
  background: var(--primary-900);
}
* {
  box-sizing: border-box;
  padding: 0px;
  margin: 0px;
}
.dark {
  --primary-900: aliceblue;
  --primary-700: white;
  --primary-800: white;
  --primary-600: hsl(222, 37%, 93%);

  --primary-200: rgba(0, 0, 0, 0.833);
  --primary-0: var(--black);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-transform: capitalize;
}
button {
  background: var(--primary-700);
  border-radius: 1rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary-600);
  font-family: "Noto Sans Regular";
  color: var(--primary-200);
  text-transform: capitalize;
}

button:hover,
.silder:focus,
button:focus:not(.active) {
  cursor: pointer;
  outline: 1px solid var(--red-400);
  border: none;
  outline-offset: 2px;
  background: var(--primary-600);
}
button:hover {
  background: var(--red-400);
  color: var(--primary-800);
  outline: none;
}
a {
  text-decoration: none;
}

.active {
  background: var(--red-400);
  border: none;
  color: var(--primary-800);
}
p {
  font-size: 12px;
  color: var(--primary-200);
  /* font-weight: normal; */
  line-height: 1.5;
}
img {
  display: block;
}
/* header */
.container {
  max-width: 80vw;
  margin: 0 auto;
  padding: 0.25rem 0.75rem;
}
header {
  padding: 0.65rem 1rem;
  display: flex;
  /* gap: 56.15rem; */
  align-items: center;
  /* border: 1px solid; */
  justify-content: space-between;
  margin-top: 1rem;
  background: var(--primary-800);
  border-radius: 0.55rem;
  margin-bottom: 2rem;
}

.btn-theme {
  padding: 0.5rem 0.5rem;
  border-radius: 0.25rem;
  border: none;
  background: var(--primary-600) !important;
}
.btn-theme img {
  height: 16px;
}

/* extension list header */
.list-header {
  display: flex;
  flex-direction: column; /* Stack elements on mobile */
  align-items: center; /* Center items */
  text-align: center; /* Center text */
}

.list-actions {
  display: flex;
  gap: 10px; /* Space between buttons */
  margin-top: 1rem;
}
/* For larger screens */
@media (min-width: 600px) {
  /* Adjust breakpoint as needed */
  .list-header {
    flex-direction: row; /* Align in a single row */
    justify-content: space-between; /* Spread elements */
  }

  .list-actions {
    display: flex;
  }
}
.extension-header {
  margin-bottom: 1.5rem;
}

/* extension list */
.card {
  background: var(--primary-800);
  padding: 1rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.extension-list .card-body {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.extension-list .card-footer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
}
.switch-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.btn-transparent {
  background: transparent;
}
.card-body img {
  width: 50px;
  height: 50px;
}
@media (min-width: 600px) {
  .extension-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
  }
}

/* Switch Container */
.switch {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 17px;
}

/* Hide Default Checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider (The Switch) */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--primary-600);
  border-radius: 25px;
  transition: 0.3s;
}

/* Circular Knob */
.slider::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 0px;
  top: 0%;
  bottom: 3.5px;
  background-color: var(--white);
  border-radius: 50%;
  transition: 0.3s;
}

/* .dark {
  background: var(--white) !important;
  color: var(--black);
}

.dark div {
  background: var(--white);
  color: var(--black);
} */
.slider.checked::before {
  /* left: 50%; */
  transition: all 0.3s ease;
  transform: translateX(85%);
}
.switch:has(.checked) .slider {
  background: var(--red-400);
}
