/* ===========================
   RESET
=========================== */

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

body {
  background: #eef2f7;
  overflow-x: hidden;
}

/* ===========================
   MAIN SIDEBAR
=========================== */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 50px;
  height: 100vh;
  background: #212529;
  transition: 0.3s;
  z-index: 1000;
  box-shadow: 3px 0 12px rgba(0, 0, 0, 0.15);
}

.sidebar.open {
  width: 60px;
}

.logo {
  height: 33px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo i {
  color: white;
  font-size: 28px;
  cursor: pointer;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-block: 13px;
}

.sidebar li a {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 35px;
  color: white;
  text-decoration: none;

  transition: 0.3s;
}

/* .sidebar li:hover a,
.sidebar li.active a {
    border-bottom: 4px solid #7267EF;
} */

.sidebar li a {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 35px;
  color: white;
  text-decoration: none;
  border-bottom: 4px solid transparent; /* space reserve */
  transition: 0.3s;
}

/* ISME KOI CHANGE NAHI KIYA */
.sidebar li:hover a,
.sidebar li.active a {
  border-bottom: 4px solid #7267ef;
}

.sidebar i {
  font-size: 22px;
}

/* ===========================
   SECOND SIDEBAR
=========================== */

.first-sidebar {
  position: fixed;
  top: 0;
  left: 50px;
  width: 0;
  height: 100vh;
  background: #2f3542;
  overflow: hidden;
  transition: 0.3s;
  z-index: 999;
  box-shadow: 3px 0 12px rgba(0, 0, 0, 0.15);
}

.first-sidebar.open {
  width: 220px;
}

.first-sidebar ul {
  list-style: none;
  margin-top: 10px;
}

.first-sidebar li {
  margin: 7px 10px;
}

.first-sidebar li a {
  position: relative;
  display: flex;
  align-items: center;
  height: 41px;
  padding-left: 18px;
  color: white !important;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
}

.first-sidebar li a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.first-sidebar li:hover a::after,
.first-sidebar li.active a::after {
  transform: scaleX(1);
}

/* .first-sidebar li a {
    display: flex;
    align-items: center;
    height: 41px;
    padding-left: 18px;
    color: white !important;
    text-decoration: none;
    transition: .3s;
    white-space: nowrap;
}

.first-sidebar li:hover a,
.first-sidebar li.active a {
    border-bottom: 2px solid #ffffff;
} */

/* ===========================
   THIRD SIDEBAR
=========================== */

.sub-sidebar {
  position: fixed;
  top: 0;
  left: 50px;
  width: 0;
  height: 100vh;
  background: #2f3542;
  overflow: hidden;
  transition: 0.35s;
  z-index: 999;
  box-shadow: 3px 0 15px rgba(0, 0, 0, 0.12);
}

.sub-sidebar.open {
  width: 220px;
}

.sub-header {
  height: 33px;
  background: #53769c;
  color: white;
  display: flex;
  align-items: center;
  padding: 0 15px;
  font-size: 18px;
  font-weight: bold;
}

#backBtn {
  border: none;
  background: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  margin-right: 15px;
}

#gridPanel {
  padding: 10px !important;
}

.menu-panel {
  display: none;
  padding: 20px;
  background: #2f3542;
}

.menu-panel.active {
  display: block;
}

.menu-panel ul {
  list-style: none;
}

.menu-panel li {
  margin-bottom: 8px;
}

.menu-panel li a {
  position: relative;
  display: block;
  text-decoration: none;
  color: #fff !important;
  padding: 10px 5px;
  overflow: hidden;
}

.menu-panel li a::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 0;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.menu-panel li a:hover {
  color: #53769c;
}

.menu-panel li a:hover::after {
  transform: scaleX(1);
}

.search-box input {
  width: 100%;
  height: 41px;
  padding: 0 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
}

/* ===========================
   CONTENT
=========================== */

.content {
  margin-left: 60px;
  padding: 30px;
  transition: 0.3s;
}

.first-sidebar.open ~ .content {
  margin-left: 250px;
}

.sub-sidebar.open ~ .content {
  margin-left: 530px;
}

.content h1 {
  margin-bottom: 20px;
}

.content p {
  color: #666;
  line-height: 28px;
}

/* ===========================
   SCROLLBAR
=========================== */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background: #bdbdbd;
  border-radius: 10px;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 768px) {
  .first-sidebar {
    left: 50px;
  }

  .sub-sidebar {
    left: 50px;
  }

  .content,
  .first-sidebar.open ~ .content,
  .sub-sidebar.open ~ .content {
    margin-left: 50px;
  }
}

.form-item {
  color: #fff !important;
}

.pc-menu {
  list-style: none;
  margin: 0;
  padding: 0px;
}

.pc-item {
  margin-bottom: 6px;
}

.pc-link {
  position: relative;
}

.pc-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.pc-link:hover::after,
.pc-item.open > .pc-link::after {
  transform: scaleX(1);
}

/* .pc-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #fff !important;
  padding: 10px 14px;
  transition: 0.3s;
}

.pc-link:hover {
  border-bottom: 2px solid #fff !important;
} */

.pc-micon {
  width: 15px;
  display: flex;
  align-items: center;
}

.pc-mtext {
  flex: 1;
  margin-left: 5px;
}

.pc-arrow {
  transition: 0.3s;
}

.pc-submenu {
  list-style: none;
  margin: 0;
  padding-left: 35px;

  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-8px);

  transition:
    max-height 0.4s ease,
    opacity 0.3s ease,
    transform 0.3s ease;
}

.pc-submenu .pc-link {
  padding: 8px 10px;
  font-size: 14px;
}

.pc-item.open > .pc-submenu {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

.pc-item.open > .pc-link .pc-arrow {
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}
