:root {
  --bg-color: #edfdff;
  --text-color: #181717;
  --header-bg: #d9f2f2;
  --item-cl: #525252;
  --item-cl-hover: #1f1e1e;
  --submenu-bg: #b8dede;
  --submenu-bg-hover: #c4e7e7;
  --btn-border: rgb(215, 215, 215);
  --btn-border-hover: rgb(33, 32, 32);
  --mobilenav-item-hover: rgba(0, 0, 0, 0.05);
}

body.dark {
  --bg-color: rgb(13, 17, 22);
  --text-color: #f5f5f5;
  --header-bg: rgb(22, 27, 34);
  --item-cl: #ccc;
  --item-cl-hover: #fff;
  --submenu-bg: rgb(28, 33, 40);
  --submenu-bg-hover: rgb(20, 25, 34);
  --btn-border: rgb(32, 39, 49);
  --btn-border-hover: rgb(109, 121, 137);
  --mobilenav-item-hover: rgb(20, 25, 31);
}

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&family=Fira+Mono:wght@400;500;700&display=swap');
@font-face {
  font-family: __GeistSans_3a0388;
  src: url(/fonts/geist.woff2) format("woff2");
  font-display: swap;
  font-weight: 100 900
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

* {
  -webkit-tap-highlight-color: transparent;
}

header {
  width: 100%;
  height: 80px;
  background: var(--header-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-color);
  user-select: none;
}
/*
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}*/

.logo img {
  height: 100%;
  width: 90px;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 30px;
  height: 30px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle svg {
  position: absolute;
  width: 30px;
  height: 30px;
  transition: transform 0.4s ease-in-out, opacity 0.3s ease-in-out;
}

.menu-toggle .close-icon {
  opacity: 0;
  transform: scale(0.8) rotate(-45deg);
}

.menu-toggle.open .menu-icon {
  opacity: 0;
  transform: scale(0.8) rotate(45deg);
}

.menu-toggle.open .close-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.header-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header-icons svg {
  font-size: 30px;
  cursor: pointer;
  transition: color 0.3s ease, stroke 0.3s ease;
  width: 30px;
  height: 30px;
}

.header-icons svg:hover {
  color: #007bff;
  stroke: #007bff;
}

.nav-links {
  display: flex;
  gap: 30px;
  margin-right: 250px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--item-cl);
  list-style: none;
  font-size: 16.5px;
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--item-cl-hover);
}

.pchassubmenu {
  position: relative;
}

.pchassubmenu .pcsubmenu {
  position: absolute;
  top: 100%;
  left: 0;
  border-radius: 12px;
  background: var(--submenu-bg);
  list-style: none;
  padding: 10px;
  margin: 0;
  width: 180px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.pchassubmenu .pcsubmenu li {
  padding: 8px 10px;
  border-radius: 12px;
  list-style: none;
}

.pchassubmenu .pcsubmenu li a {
  text-decoration: none;
  font-size: 14px;
  display: block;
}

.pchassubmenu .pcsubmenu li:hover {
  background: var(--submenu-bg-hover);
  color: #f5f5f5;
}

.pchassubmenu.open .pcsubmenu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.pchassubmenu:hover .pcsubmenu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.pchassubmenu .icon {
  width: 12px;
  margin-left: 8px;
  margin-top: 7px;
  height: 12px;
  color: var(--item-cl);
  stroke: var(--item-cl);
  opacity: 1;
}

.mobile-nav {
  position: fixed;
  top: 6px;
  left: -100%;
  width: 80%;
  height: 100vh;
  background: var(--header-bg);
  color: var(--item-cl);
  display: flex;
  flex-direction: column;
  padding-top: 60px;
  transition: left 0.4s ease;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.mobile-nav.open {
  left: 0;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
}

.mobile-nav ul li {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
  transition: background 0.3s;
}
.mobile-nav ul li:hover {
  background-color: var(--mobilenav-item-hover);
}
.mobile-nav ul li a {
  text-decoration: none;
  color: var(--item-cl);
  font-size: 15px;
  display: block;
}

.submenu {
  display: block;
  max-height: 0;
  overflow: hidden;
  padding-left: 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.submenu li {
  padding: 10px 0;
  border-bottom: none;
}

.has-submenu {
  cursor: pointer;
}

.has-submenu.submenu-open {
  background-color: rgba(0, 0, 0, 0.05);
}

.has-submenu .icon {
  position: relative;
  opacity: 1;
  top: 1px;
  left: 7px;
  width: 12px;
  height: 12px;
  transition: transform 0.3s;
}

.submenu-open .submenu {
  max-height: 500px;
  padding: 10px 0;
}

.submenu-open .icon {
  transform: rotate(180deg);
}

.submenu li:hover {
  background-color: transparent !important;
}


.theme-toggle {
  border: 0.01em solid var(--btn-border);
  background-color: var(--header-bg);
  padding: 15px 22px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  border: 0.01em solid var(--btn-border-hover);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
  }

  .header-icons {
    gap: 25px;
  }

  .header-icons svg {
    font-size: 30px;
    width: 30px;
    height: 30px;
  }

  .logo {
    font-size: 25px;
  }
}

@media (max-width: 360px) {
  .header-icons {
    gap: 10px;
  }

  .logo {
    font-size: 19px;
  }

  .header-icons svg {
    font-size: 25px;
    width: 25px;
    height: 25px;
  }
}

.icon {
  position: absolute;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.icon-svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-color);
}

.sun {
  transform: translateY(-20px);
}

.moon {
  transform: translateY(20px);
}

body.dark .moon {
  opacity: 1;
  transform: translateY(0);
}

body:not(.dark) .sun {
  opacity: 1;
  transform: translateY(0);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  margin-right: 10px;
}

.user-dropdown .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--btn-border);
  transition: transform 0.3s ease;
}

.arrow-icon {
  width: 17px;
  height: 17px;
  transition: transform 0.2s ease;
  filter: brightness(0) saturate(100%) invert(22%) sepia(0%) saturate(0%) hue-rotate(155deg) brightness(95%) contrast(95%);
}

body.dark .arrow-icon {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7500%) hue-rotate(303deg) brightness(108%) contrast(107%);
}

.arrow-icon.rotate {
  transform: rotate(180deg);
}

.user-menu {
  position: absolute;
  top: 110%;
  right: 0;
  background: var(--submenu-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  list-style: none;
  padding: 0.5rem 0;
  display: none;
  z-index: 999;
  min-width: 150px;
}

.user-menu.show {
  display: block;
}

.user-menu li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  color: var(--item-cl);
  transition: background 0.3s, color 0.3s;
}

.user-menu li a:hover {
  background: var(--submenu-bg-hover);
  color: var(--item-cl-hover);
}

.menu-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: inherit;
}

.login-button {
  padding: 6px 12px;
  text-decoration: none;
  background-color: transparent;
  border-radius: 10px;
  border: 0.01em solid var(--btn-border);
  color: var(--item-cl-hover);
  font-size: 14px;
}

.login-button svg {
  height: 16px;
  width: 16px;
  margin-right: 5px;
  vertical-align: middle;
}

.login-button:hover {
  border: 0.01em solid var(--btn-border-hover);
}

.custom-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: var(--submenu-bg);
  color: var(--text-color);
  border-radius: 10px;
  border: 0.05em solid var(--btn-border);
  padding: 15px;
  display: none;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  animation: slideIn 0.5s ease-in-out;
  width: 300px;
  max-width: 100%;
}

.custom-alert svg {
  width: 19px;
  height: 19px;
  vertical-align: middle;
}

.custom-alert.dark {
  background-color: var(--submenu-bg-hover);
  color: var(--text-color);
}

.alert-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

#alert-message {
  flex-grow: 1;
}

#close-alert {
  background: none;
  border: none;
  color: var(--item-cl-hover);
  font-size: 18px;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.3s ease;
}

#alert-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  border-radius: 50%;
  height: 40px;
  width: 40px;
  background-color: var(--submenu-bg-hover);
  overflow: hidden;
  flex: none;
  min-width: 40px;
  min-height: 40px;
}


#alert-icon svg {
  width: 18px;
  height: 18px;
}

#close-alert:hover {
  color: var(--item-cl);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}