.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 230px;
  height: 100vh;
  background: linear-gradient(to bottom, #102844, #0e4c5f, #12736b);
  color: white;
  padding-top: 70px;
  overflow-y: auto;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 100;
}

.menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu li {
  position: relative;
}

.menu li a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #eee;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.2s ease-in-out;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(3px);
}

.menu li a:hover {
  background-color: rgba(26, 179, 148, 0.15);
  color: #fff;
}

.menu li a i {
  color: #1abc9c;
  margin-right: 10px;
  width: 20px;
  text-align: center;
  transition: color 0.3s ease;
}

.menu li a:hover i {
  color: #ffffff;
}

.menu li.has-submenu>a::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 18px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 0 6px rgba(26, 179, 148, 0.2);
  transition: transform 0.25s ease, text-shadow 0.25s ease, color 0.25s ease;
}

.menu li.has-submenu.open>a::after {
  transform: rotate(180deg);
  color: #1abc9c;
  text-shadow: 0 0 8px rgba(26, 179, 148, 0.5);
}

.submenu {
  display: none;
  background: rgba(255, 255, 255, 0.03);
  padding-left: 16px;
  margin-left: 0;
  border-left: 2px solid #1abc9c;
  backdrop-filter: blur(2px);
}

.submenu li {
  position: relative;
  list-style: none !important;
}

.submenu li a {
  display: flex;
  align-items: center;
  padding: 10px 30px;
  font-size: 13px;
  background: transparent;
  color: #ccc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.submenu li a:hover {
  background-color: rgba(26, 179, 148, 0.2);
  color: #fff;
}

.submenu li a i {
  margin-right: 8px;
  color: #1abc9c;
  width: 18px;
}

.submenu li a:hover i {
  color: #fff;
}

.submenu li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #1abc9c;
  opacity: 0.6;
}

.submenu li:nth-child(1)::before {
  background-color: #e74c3c;
}

.submenu li:nth-child(2)::before {
  background-color: #3498db;
}

.submenu li:nth-child(3)::before {
  background-color: #f39c12;
}

.submenu li:nth-child(4)::before {
  background-color: #2ecc71;
}

.submenu li:nth-child(5)::before {
  background-color: #9b59b6;
}

.submenu li:nth-child(6)::before {
  background-color: #1abc9c;
}

.submenu li:nth-child(7)::before {
  background-color: #e67e22;
}

.submenu li:nth-child(8)::before {
  background-color: #34495e;
}

.submenu li:nth-child(9)::before {
  background-color: #95a5a6;
}

.submenu li:nth-child(10)::before {
  background-color: #fd79a8;
}

.sidebar::-webkit-scrollbar {
  width: 0px;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: transparent;
  border-radius: 0;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background-color: #888;
}

.sidebar.collapsed {
  left: -230px;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.sidebar.collapsed~.content {
  margin-left: 0 !important;
  transition: all 0.3s ease;
}

.content {
  margin-left: 230px;
  transition: all 0.3s ease;
}

@media (max-width: 992px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: -230px;
    width: 230px;
    height: 100vh;
    overflow-y: auto;
    background: linear-gradient(to bottom, #102844, #0e4c5f, #12736b);
    padding-top: 70px;
    z-index: 2000;
    transition: left 0.3s ease;
  }

  .sidebar.collapsed {
    left: 0;
  }

  .content {
    margin-left: 0 !important;
  }
}

body[data-theme="white"] .menu li a {
  border-bottom: 1px solid #e5e7eb;
}

body[data-theme="white"] .submenu li a {
  border-bottom: 1px solid #e5e7eb;
  color: #5f6368;
}

body[data-theme="white"] .menu li.has-submenu>a::after {
  color: #9ca3af;
  text-shadow: none;
}

body[data-theme="white"] .menu li.has-submenu.open>a::after {
  color: #1abc9c;
}

body[data-theme="white"] .submenu {
  background: rgba(0, 0, 0, 0.02);
}
