@import url("https://fonts.googleapis.com/css2?family=KoHo:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600;1,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap");

/* ====================
Reset Default CSS Start
==================== */

:root {
  --primary-color: #cccccc;
  --secondary-color: #030304;
  --accent-color1: #333333;
  --accent-color2: #b3b3b3;
  --white: #ffffff;
  --primary-font: "KoHo";
  --secondary-font: "Roboto Mono";
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--primary-font);
  margin-top: 0;
}

p {
  font-family: var(--primary-font);
  margin-top: 0;
}

span {
  font-family: var(--primary-font);
}

a {
  text-decoration: none !important;
  font-family: var(--primary-font);
}

ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
  font-family: var(--primary-font);
}

button {
  border: none;
  outline: none;
  font-family: var(--primary-font);
}

input {
  outline: none;
  font-family: var(--primary-font);
}

label {
  font-family: var(--primary-font);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--secondary-color) !important;
}

/* ====================
  Reset Default CSS End
  ==================== */

/* Navbar Start */

#navbar {
  position: sticky;
  top: 0;
  left: 0;
  padding: 20px 0;
  background: var(--secondary-color);
  border-bottom: 1px solid var(--accent-color1);
}

.navbar_wrapper {
  /* position: relative; */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  width: 200px;
}

.nav_items {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav_menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  color: var(--primary-color);
  font-size: 20px;
  font-weight: 500;
  font-family: var(--primary-font);
  border-radius: 12px;
  -webkit-border-radius: 12px;
  -moz-border-radius: 12px;
  -ms-border-radius: 12px;
  -o-border-radius: 12px;
  transition: 0.4s;
  -webkit-transition: 0.4s;
  -moz-transition: 0.4s;
  -ms-transition: 0.4s;
  -o-transition: 0.4s;
}

.nav_menu {
 z-index: 100;
}

.nav_menu li a.active,
.nav_menu li a:hover {
  background: var(--accent-color1);
  color: var(--white);
}

.nav_menu li a img {
  width: 30px;
  height: 30px;
}

@media screen and (max-width: 992px) {
  .nav_menu {
    position: absolute;
    width: 0;
    height: calc(100vh - 20px) !important;
    left: 10px;
    top: 10px;
    display: block !important;
    padding: 50px 10px 10px 10px !important;
    height: calc(100vh - 120px);
    border: 1px solid var(--Accent-80, #333);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(15px);
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    user-select: none;
    pointer-events: none;
    border-radius: 20px;
    transition: 0.4s;
    -webkit-transition: 0.4s;
    -moz-transition: 0.4s;
    -ms-transition: 0.4s;
    -o-transition: 0.4s;
  }

  .nav_menu.active {
    width: 300px;
    opacity: 1;
    user-select: auto;
    pointer-events: all;
  }

  .nav_menu li a {
    border: 1px solid var(--accent-color1);
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 576px) {
  .nav_menu.active {
    right: 10px;
  }
}

.nav_items li {
  position: relative;
}

.nav_items li .nav_item_btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: transparent;
  border: 1px solid var(--accent-color1);
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  transition: 0.4s;
  -webkit-transition: 0.4s;
  -moz-transition: 0.4s;
  -ms-transition: 0.4s;
  -o-transition: 0.4s;
}

.nav_items li .nav_item_btn:hover {
  background: var(--accent-color1);
}

.nav_items li .nav_item_btn svg {
  width: 26px;
  height: 26px;
}

.nav_items li .nav_item_btn span {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  font-family: var(--primary-font);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-color);
  background: #ec2f2f;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
}

.nav_open {
  display: none;
  flex-direction: column;
  width: 28px;
  cursor: pointer;
}

.nav_open span {
  background: #fff;
  border-radius: 10px;
  height: 2px;
  margin: 4px 0;
  transition: 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.nav_open span:nth-of-type(1) {
  width: 50%;
}

.nav_open span:nth-of-type(2) {
  width: 100%;
}

.nav_open span:nth-of-type(3) {
  width: 75%;
}

.nav_open.active span:nth-of-type(1) {
  transform-origin: bottom;
  transform: rotatez(45deg) translate(5px, 1px);
  -webkit-transform: rotatez(45deg) translate(5px, 1px);
  -moz-transform: rotatez(45deg) translate(5px, 1px);
  -ms-transform: rotatez(45deg) translate(5px, 1px);
  -o-transform: rotatez(45deg) translate(5px, 1px);
}

.nav_open.active span:nth-of-type(2) {
  transform-origin: top;
  transform: rotatez(-45deg);
}

.nav_open.active span:nth-of-type(3) {
  transform-origin: bottom;
  width: 50%;
  transform: translate(13px, -6px) rotatez(45deg);
  -webkit-transform: translate(13px, -6px) rotatez(45deg);
  -moz-transform: translate(13px, -6px) rotatez(45deg);
  -ms-transform: translate(13px, -6px) rotatez(45deg);
  -o-transform: translate(13px, -6px) rotatez(45deg);
}

.flag-icon,
.avatar {
  width: 24px;
  height: 24px;
  margin-right: 0.5rem;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 30px);
  right: 0;
  background-color: var(--accent-color2);
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  min-width: 260px;
  padding: 10px 0;
  overflow: hidden;
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}

.dropdown-content .dropdown_item {
  color: var(--secondary-color);
  font-family: var(--secondary-font);
  font-size: 16px;
  font-weight: 500;
  padding: 10px 16px;
  background: transparent;
  text-decoration: none;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: 0.4s;
  -webkit-transition: 0.4s;
  -moz-transition: 0.4s;
  -ms-transition: 0.4s;
  -o-transition: 0.4s;
}

#language-dropdown {
  max-height: 300px;
  overflow: auto;
  scrollbar-gutter: stable;
  padding-right: 2px;
}

#language-dropdown::-webkit-scrollbar {
  width: 6px;
}

#language-dropdown::-webkit-scrollbar-track {
  background: #e5e5e5;
  border-radius: 30px;
  -webkit-border-radius: 30px;
  -moz-border-radius: 30px;
  -ms-border-radius: 30px;
  -o-border-radius: 30px;
}

#language-dropdown::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 30px;
  -webkit-border-radius: 30px;
  -moz-border-radius: 30px;
  -ms-border-radius: 30px;
  -o-border-radius: 30px;
}

#language-dropdown .dropdown_item {
  border-radius: 0 8px 8px 0;
  margin-bottom: 5px;
}

#language-dropdown .dropdown_item:last-child {
  margin-bottom: 0;
}

#language-dropdown .dropdown_item.selected,
#language-dropdown .dropdown_item:hover {
  background: #141414;
  color: var(--white);
}

.language_flag_img {
  width: 28px;
}

.check-icon img {
  width: 18px;
  height: 18px;
}

.check-icon {
  display: none;
}

.selected .check-icon {
  display: inline;
}

#profile-dropdown .dropdown_item:hover {
  background: #141414;
  color: var(--white);
}

#profile-dropdown .dropdown_item:hover .profile_icon {
  background: var(--white);
}

.profile_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--accent-color1);
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  transition: 0.4s;
  -webkit-transition: 0.4s;
  -moz-transition: 0.4s;
  -ms-transition: 0.4s;
  -o-transition: 0.4s;
}

.user_icon svg {
  width: 22px;
  height: 22px;
}

#profile-dropdown .dropdown_item:hover .user_icon path {
  stroke: var(--secondary-color);
}

#profile-dropdown .dropdown_item:hover .logout_icon path {
  fill: var(--secondary-color);
}

.user_icon svg path {
  stroke: var(--white);
  transition: 0.4s;
  -webkit-transition: 0.4s;
  -moz-transition: 0.4s;
  -ms-transition: 0.4s;
  -o-transition: 0.4s;
}

.logout_icon svg {
  width: 20px;
  height: 20px;
}

.logout_icon svg path {
  fill: var(--white);
  transition: 0.4s;
}

#notification-dropdown {
  width: 350px !important;
  max-height: 500px;
  overflow: auto;
}

#notification-dropdown::-webkit-scrollbar {
  width: 6px;
}

#notification-dropdown::-webkit-scrollbar-track {
  background: #e5e5e5;
  border-radius: 30px;
  -webkit-border-radius: 30px;
  -moz-border-radius: 30px;
  -ms-border-radius: 30px;
  -o-border-radius: 30px;
}

#notification-dropdown::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 30px;
  -webkit-border-radius: 30px;
  -moz-border-radius: 30px;
  -ms-border-radius: 30px;
  -o-border-radius: 30px;
}

.notification_head {
  font-family: var(--primary-font);
  font-size: 24px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 0 8px 8px 0;
  background: var(--secondary-color);
  color: var(--white);
  margin-bottom: 0;
}

.notification_item {
  padding: 10px 16px;
  border-bottom: 1px solid var(--secondary-color);
}

.notification_item p {
  font-family: var(--secondary-font);
  color: var(--accent-color1);
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 6px;
}

.notification_item h5 {
  font-family: var(--primary-font);
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 10px;
}

.notification_item p span {
  color: var(--secondary-color);
  font-weight: 700;
}

.noti_alert_msg {
  font-weight: 400;
  font-size: 14px !important;
  margin-top: 16px;
}

.noti_alert_msg a {
  color: var(--accent-color1);
  font-family: var(--secondary-font);
  text-decoration: underline !important;
}

.notification_btn {
  display: block;
  width: 100%;
  padding: 10px;
  font-family: var(--primary-font);
  color: var(--white);
  background: var(--accent-color1);
  font-weight: 700;
  margin-top: 20px;
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}

.notification_item:last-child {
  border-bottom: none;
}

.has-dropdown {
  position: relative;
}

.dropdown_toggle {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 20px;
  font-weight: 500;
  font-family: var(--primary-font);
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0px;
  transition: background 0.3s, color 0.3s;
}

.dropdown_arrow {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s;
  color: var(--primary-color);
}

/* Only rotate arrow on open for desktop */
.has-dropdown.open > .dropdown_toggle .dropdown_arrow,
.has-dropdown:hover > .dropdown_toggle .dropdown_arrow {
  transform: rotate(180deg);
  color: var(--white);
}

/* Remove hover rotation for mobile, only rotate on .open */
@media screen and (max-width: 992px) {
  .has-dropdown:hover > .dropdown_toggle .dropdown_arrow {
    transform: none;
    color: var(--primary-color);
  }
  .has-dropdown.open > .dropdown_toggle .dropdown_arrow {
    transform: rotate(180deg);
    color: var(--white);
  }
  .dropdown_toggle {
    border: 1px solid var(--accent-color1);
  }
  .dropdown_toggle:hover {
    background: var(--accent-color1);
  }
  .has-dropdown.open > .dropdown_toggle {
    background: var(--accent-color1);
    margin-bottom: 10px;
    color: var(--white);
  }
}

/* Close button for sidebar menu */
.nav_menu .nav_close {
  display: none;
  position: absolute;
  top: 0;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--primary-color);
  font-size: 28px;
  cursor: pointer;
  z-index: 20;
}

@media screen and (max-width: 992px) {
  .nav_menu .nav_close {
    display: block;
  }
}

.dropdown_menu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 160px;
  background: white;
  padding: 10px !important;
  border-radius: 6px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scaleY(0.95);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  z-index: 10;
  padding: 8px 0;
  pointer-events: none;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  -ms-border-radius: 6px;
  -o-border-radius: 6px;
}

.has-dropdown:hover > .dropdown_menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scaleY(1);
  pointer-events: auto;
}

.dropdown_menu li {
  margin-bottom: 10px;
}

.dropdown_menu li:nth-last-child(1) {
  margin-bottom: 0px;
}

.dropdown_menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--secondary-color);
  border: 1px solid var(--accent-color1);
  font-size: 16px;
  margin: 0;
  border-radius: 6px;
  transition: background 0.2s;
}

/* Mobile styles */
@media screen and (max-width: 992px) {
  .has-dropdown {
    width: 100%;
    margin-bottom: 10px;
  }
  .dropdown_toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
  .dropdown_menu {
    position: static;
    min-width: 0;
    box-shadow: none;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    transform: none;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s,
      visibility 0.3s;
    overflow: hidden;
    padding: 0 !important;
    pointer-events: none;
  }
  .dropdown_menu li {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
      transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .has-dropdown.open > .dropdown_menu {
    opacity: 1;
    visibility: visible;
    max-height: 300px;
    background: transparent;
    pointer-events: auto;
    padding: 0;
    margin-bottom: 10px !important;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s,
      visibility 0.3s;
  }
  .has-dropdown.open > .dropdown_menu li {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
      transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
  }
  .dropdown_menu li a {
    padding: 10px 20px;
    color: var(--primary-color);
    border-radius: 6px;
  }
}

@media screen and (max-width: 992px) {
  .logo img {
    width: 160px;
  }

  .nav_items {
    gap: 10px;
  }

  .language_switcher {
    display: none;
  }

  .nav_items li .nav_item_btn {
    width: 40px;
    height: 40px;
  }

  .nav_items li .nav_item_btn span {
    top: 2px;
    right: 0px;
    font-size: 10px;
  }

  .nav_open {
    display: flex;
  }
}

/* Navbar End */
