* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
  }

  html,body{
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 32 32"><filter id="shadow" x="-20%" y="-20%" width="140%" height="140%"><feDropShadow dx="0" dy="1" stdDeviation="2" flood-color="rgba(0,0,0,0.3)"/></filter><circle cx="16" cy="16" r="12" fill="%23e0e4ff" filter="url(%23shadow)"/></svg>') 10 10, auto !important;

  }
  .album-progress-wrapper,.social-icon,.cat-wrapper,.menu-link,.dropdown-header,.button,.downloadBtn,.previewBtn,.browserBtn,.clientBtn,.clickable,.mod-card p:nth-child(1),.clock,.box{
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 32 32"><filter id="shadow" x="-20%" y="-20%" width="140%" height="140%"><feDropShadow dx="0" dy="1" stdDeviation="2" flood-color="rgba(0,0,0,0.3)"/></filter><circle cx="16" cy="16" r="12" fill="%23ff9edb" filter="url(%23shadow)"/></svg>') 10 10, auto !important;

}
.logo{
  width: 200px;
  height: auto;
  margin-bottom: 10px !important;
  margin-top: -12px;
}
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 250px;
    height: 100%;
    background-color: var(--sidebar);
    color: white;
    transition: left 0.3s ease;
    z-index: 10000;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    left: 0;
}

.sidebar-content {
    padding: 20px;
    flex-grow: 1;
}

.sidebar-content h2 {
    margin-bottom: 20px;
    text-align: center;
}

.sidebar-content ul {
    list-style: none;
}

.sidebar-content ul li {
    margin-bottom: 10px;
}

.sidebar-content ul li a {
    color: white;
    text-decoration: none;
    display: flex;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.sidebar-content ul li a:hover {
    background-color: #444;
}

.main-content {
    padding: 20px;
    transition: margin-left 0.3s ease;
}

.main-content.shifted {
    margin-left: 240px;
}

/* Theme switcher styles */
.theme-switcher {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.button-container {
    position: relative;
    display: flex;
    width: 210px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.highlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 25%;
    height: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgb(227, 227, 227);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    z-index: 1;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.29), 0 0 8px rgba(255, 255, 255, 0.4);
}

.button {
    flex: 1;
    margin-left: 1px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.2s;
}

.button svg {
    width: 20px;
    height: 20px;
    fill: rgba(255, 255, 255, 0.6);
    transition: fill 0.3s ease;
}

.button:nth-of-type(1) svg,.button:nth-of-type(3) svg {
  height: 24px;
  width: 24px;
}

.button.active svg {
    fill: #ffffff;
}

/* Enhanced Sidebar Menu Styles */
.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-item {
  margin-bottom: 8px;
}

.menu-link {
  display: flex;
  box-sizing: border-box;
  height: 45px;
  align-items: center;
  padding: 10px 15px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
  cursor: pointer;
}

.menu-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.menu-icon {
  width: 20px;
  height: 20px;
  filter: saturate(0) brightness(2);
  margin-right: 4px;
  fill: currentColor;
}

.project-icon {
  width: 16px;
  height: 16px;
  filter: saturate(0) brightness(2);
  margin-right: 4px;
  fill: currentColor;
}

.tools-icon{
  width: 25px;
  height: 25px;
  filter: saturate(0) brightness(2);
  margin-right: 4px;
  fill: currentColor;
}

/* Dropdown styles with improved animation */
.dropdown {
  position: relative;
}

.dropdown-header {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.dropdown-header:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.dropdown-arrow {
  width: 16px;
  height: 16px;
  margin-left: auto;
  fill: currentColor;
  transition: transform 0.3s;
}

.dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* Improved dropdown menu animation with slide effect */
.dropdown-menu {
  max-height: 0;
  overflow: hidden;
  list-style: none;
  padding: 0;
  margin: 0;
  margin-left: 30px;
  position: relative;
  padding-left: 15px;
  transition: max-height 0.3s ease-out;
}

.dropdown.active .dropdown-menu {
  max-height: 200px; 
}

.dropdown.active .dropdown-menu::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, 
    white 0%, 
    white 50%, 
    transparent 50%, 
    transparent 100%);
  background-size: 6px 6px;
  background-repeat: repeat-y;
  height: calc(100% - 28px);
}

/* Slide animation for menu items */
.dropdown-menu li {
  position: relative;
  height: 40px; /* Fixed height for menu items */
  transform: translateX(-20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transition-delay: calc(var(--item-index, 0) * 0.05s);
}

.dropdown.active .dropdown-menu li {
  transform: translateX(0);
  opacity: 1;
}

/* Ensure the first item has a delay of 0 */
.dropdown-menu li:nth-child(1) {
  --item-index: 0;
}

/* Add delays for subsequent items */
.dropdown-menu li:nth-child(2) {
  --item-index: 1;
}

.dropdown-menu li:nth-child(3) {
  --item-index: 2;
}

.dropdown-menu li:nth-child(4) {
  --item-index: 3;
}

.dropdown-menu li:before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  width: 10px;
  height: 2px;
  background-color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dropdown.active .dropdown-menu li:before {
  opacity: 1;
  transition-delay: 0.2s;
}

.dropdown-menu .menu-link {
  padding: 8px 1px;
  display: flex;
  align-items: center;
  height: 100%;
}

/* Active tab styling */
.menu-link.active {
  background-color: var(--active);
  color: white;
  font-weight: 500;
}

/* Highlight active dropdown header when a child is active */
.dropdown.has-active-child .dropdown-header {
  color: white;
}

.terminal-button {
  display: block;
  width: 85%;
  border-radius: 15px;
  margin-left: 20px;
  height: 40px;
  border: 1px solid #ffffff4a;
  background: rgba(255, 255, 255, 0.1);
  color: #f5f5f5;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 15px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-transform: uppercase;
}

.terminal-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 22, 35, 0.35);
  border-color: #e3e3e3;
}

.terminal-button:active {
  transform: translateY(0);
  box-shadow: none;
}