/* Google Font Import - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

:root {
  /* ===== Colors ===== */
  --body-color: #ffff;
  --sidebar-color: linear-gradient(#3232ad, #9999d6);
  --primary-color: #695CFE;
  --primary-color-light: #F6F5FF;
  --toggle-color: white;
  --text-color: #ffff;

  /* ====== Transition ====== */
  --tran-03: all 0.2s ease;
  --tran-03: all 0.3s ease;
  --tran-04: all 0.3s ease;
  --tran-05: all 0.3s ease;
}

body {
  min-height: 100vh;
  background-color: var(--body-color);
  transition: var(--tran-05);
  overflow-y: scroll;
  overflow-x: hidden;

}

body::-webkit-scrollbar {
  width: 8px;
  /* Set the width of the scrollbar */
}

body::-webkit-scrollbar-track {
  background-color: #f1f1f1;
  /* Set the background color of the track */
}

body::-webkit-scrollbar-thumb {
  background-color: #9999d6;
  /* Set the color of the thumb */
  border-radius: 4px;
  /* Round the corners of the thumb */
}

body::-webkit-scrollbar-thumb:hover {
  background-color: #555;
  /* Set the color of the thumb on hover */
}

x::selection {
  background-color: var(--primary-color);
  color: #fff;
}

body.dark {
  --body-color: #ffff;
  --sidebar-color: #242526;
  --primary-color: #3a3b3c;
  --primary-color-light: #3a3b3c;
  --toggle-color: #fff;
  --text-color: #fff;
}

/* ===== Sidebar ===== */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  height: 100%;
  width: clamp(12rem, 8.4rem + 19.2vw, 18rem);
  padding: clamp(1.25rem, 0.5rem + 4vw, 2.5rem) 14px 20px 14px;
  background: var(--sidebar-color);
  transition: var(--tran-05);
  z-index: 10000;
}

.sidebar.close {
  width: 88px;
}

body[data-mobile="true"] .sidebar.close {
  width: 0px;
  padding: 0;
}

/* ===== Reusable code - Here ===== */
.sidebar li {
  height: 50px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(0rem, -1.125rem + 6vw, 1.875rem);
}

.sidebar header .image,
.sidebar .icon {

  border-radius: 6px;
}

.sidebar .icon {
  margin: 0 clamp(0.9375rem, 0.75rem + 1vw, 1.25rem);
  border-radius: 6px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.9375rem, 0.75rem + 1vw, 1.25rem);
}

.sidebar .text,
.sidebar .icon {
  color: var(--text-color);
  transition: var(--tran-03);
}

.sidebar .text {
  font-size: clamp(0.75rem, 0.5625rem + 1vw, 1.0625rem);
  font-weight: 500;
  white-space: nowrap;
  opacity: 1;
  margin-right: clamp(0.3125rem, -0.25rem + 3vw, 1.25rem);
  transform-origin: left;
}

.sidebar.close .text {
  opacity: 0;
  transform: scaleX(0);
}

/* =========================== */

.sidebar header {
  position: relative;
}

.sidebar header .image-text {
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: space-evenly;
}

@media (max-width: 710px) {
  .sidebar header .image-text {
    flex-direction: column;
    gap: 10px;
  }
}

.sidebar header .logo-text {
  display: flex;
  flex-direction: column;
}

header .image-text .name {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 600;
}

header .image-text .profession {
  font-size: 15px;
  margin-top: -2px;
  margin-left: 10px;
  display: block;
}

@media (max-width: 600px) {
  header .image-text .profession {
    margin-left: 0;
  }
}

.image-text img {
  width: 88px;
  transition: width 0.3s ease;
}

.sidebar.close .image-text img {
  width: 60px;
}

body[data-mobile="true"] .sidebar.close .image-text img {
  width: 0px;
  pointer-events: none;
}

.sidebar header .image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar header .image img {
  border-radius: 6px;
}

.sidebar header .toggle {
  position: absolute;
  top: 50%;
  right: -25px;
  transform: translateY(-50%) rotate(180deg);
  height: 25px;
  width: 25px;
  background-color: var(--primary-color);
  color: var(--sidebar-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: var(--tran-05);
}

body.dark .sidebar header .toggle {
  color: var(--text-color);
}

.sidebar.close .toggle {
  transform: translateY(-50%) rotate(0deg);
}

.sidebar .menu {
  margin-top: 20px;
}

.sidebar li.search-box {
  border-radius: 6px;
  background-color: var(--primary-color-light);
  cursor: pointer;
  transition: var(--tran-05);
}

.sidebar li.search-box input {
  height: 100%;
  width: 100%;
  outline: none;
  border: none;
  background-color: var(--primary-color-light);
  color: var(--text-color);
  border-radius: 6px;
  font-size: 17px;
  font-weight: 500;
  transition: var(--tran-05);
}

.sidebar li a {
  list-style: none;
  height: 100%;
  background-color: transparent;
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
  border-radius: 6px;
  text-decoration: none;
  transition: var(--tran-03);
}

.sidebar li a:hover {
  background-color: var(--primary-color);
}

.sidebar li a:hover .icon,
.sidebar li a:hover .text {
  color: white;
}

body.dark .sidebar li a:hover .icon,
body.dark .sidebar li a:hover .text {
  color: white;
}

.sidebar .menu-bar {
  height: calc(100% - 55px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: scroll;

}

.menu-bar::-webkit-scrollbar {
  display: none;
}

.sidebar .menu-bar .mode {
  justify-content: start;
  border-radius: 6px;
  background-color: transparent;
  position: relative;
  transition: var(--tran-05);
}

.sidebar.close:hover .toggle {
  transform: translateY(-50%) rotate(180deg);
}

.menu-bar .mode .sun-moon {
  height: 50px;
  display: flex;
  justify-content: center;
  width: clamp(0.9375rem, 0.75rem + 1vw, 1.25rem);
  margin: 0 clamp(0.9375rem, 0.75rem + 1vw, 1.25rem);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.sidebar.close .menu-bar .mode .sun-moon {
  opacity: 0;
}

.mode .sun-moon i {
  position: absolute;
}

.mode .sun-moon i.sun {
  opacity: 0;
}

body.dark .mode .sun-moon i.sun {
  opacity: 3;
}

body.dark .mode .sun-moon i.moon {
  opacity: 0;
}

.menu-bar .bottom-content .toggle-switch {
  position: absolute;
  right: clamp(0.3125rem, -0.25rem + 3vw, 1.25rem);
  height: 100%;
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: end;
  border-radius: 6px;
  cursor: pointer;
  transition: right 0.3s ease;
}

.sidebar.close .menu-bar .bottom-content .toggle-switch {
  right: 0;
  justify-content: center;
}

.toggle-switch .switch {
  position: relative;
  height: clamp(0.9375rem, 0.675rem + 1.4vw, 1.375rem);
  width: clamp(1.5625rem, 1rem + 3vw, 2.5rem);
  border-radius: clamp(1.03125rem, 0.7125rem + 1.7vw, 1.5625rem);
  background-color: var(--toggle-color);
  transition: var(--tran-05);
}

.switch::before {
  content: '';
  position: absolute;
  height: clamp(0.625rem, 0.4375rem + 1vw, 0.9375rem);
  width: clamp(0.625rem, 0.4375rem + 1vw, 0.9375rem);
  border-radius: 50%;
  top: 50%;
  left: clamp(0.208125rem, 0.1455rem + 0.334vw, 0.3125rem);
  transform: translateY(-50%);
  background-color: var(--primary-color);
  transition: var(--tran-04);
}

body.dark .switch::before {
  left: clamp(0.833125rem, 0.583rem + 1.334vw, 1.25rem);
}

.home {
  position: absolute;
  top: 0;
  top: 0;
  left: 250px;
  height: 100vh;
  width: calc(100% - 250px);
  background-color: var(--body-color);
  transition: var(--tran-05);
}

.home .text {
  font-size: 30px;
  font-weight: 500;
  color: var(--text-color);
  padding: 12px 60px;
}

.sidebar.close~.home {
  left: 78px;
  height: 100vh;
  width: calc(100% - 78px);
}

body.dark .home .text {
  color: var(--text-color);
}

* {
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

*:focus {
  outline: none;
}

#app-cover {
  display: table;
  width: 600px;
  margin: 80px auto;
  counter-reset: button-counter;
}

.row {
  display: table-row;
}

.toggle-button-cover {
  display: table-cell;
  position: relative;
  width: 200px;
  height: 140px;
  box-sizing: border-box;
}

.button-cover {
  height: 100px;
  margin: 20px;
  background-color: #fff;
  box-shadow: 0 10px 20px -8px #c5d6d6;
  border-radius: 4px;
}

.button-cover:before {
  counter-increment: button-counter;
  content: counter(button-counter);
  position: absolute;
  right: 0;
  bottom: 0;
  color: #d7e3e3;
  font-size: 12px;
  line-height: 1;
  padding: 5px;
}

.button-cover,
.knobs,
.layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.button {
  position: relative;
  top: 50%;
  width: 150px;
  height: 36px;
  margin: -20px auto 0 auto;
  overflow: hidden;
}

.button.r,
.button.r .layer {
  border-radius: 100px;
}

.button.b2 {
  border-radius: 2px;
}

.checkbox {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.knobs {
  z-index: 2;
}

.layer {
  width: 100%;
  background-color: #ebf7fc;
  transition: 0.3s ease all;
  z-index: 1;
}

/* Button 3 */
#button-3 .knobs:before {
  content: "Desktop";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 50px;
  height: 10px;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  padding: 9px 4px;
  background-color: #3232ad;
  border-radius: 50%;
  transition: 0.3s ease all, left 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15);
}

#button-3 .checkbox:active+.knobs:before {
  width: 100px;
  border-radius: 100px;
}

#button-3 .checkbox:checked:active+.knobs:before {
  margin-left: -26px;
}

#button-3 .checkbox:checked+.knobs:before {
  content: "Mobile";
  left: 85px;
  background-color: #3232ad;
}

#button-3 .checkbox:checked~.layer {
  background-color: #ebf7fc;
}

.translate-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  overflow: hidden;
}

#google_translate_element {
  min-width: 70px;
  transform: scale(0.85);
  transform-origin: left center;
  opacity: 1;
  transition: opacity 0.3s ease,
}

.sidebar.close #google_translate_element {
  opacity: 0;
}

.translate-link #google_translate_element {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.sidebar.close .translate-link #google_translate_element {
  opacity: 0;
  pointer-events: none;
}