.desktop-header {
  display: none;
}

.mobile-header-top,
.mobile-nav-bottom {
  display: flex;
}

.main-wrapper {
  display: block;
}

.mobile-header-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #1c1e21;
  border-bottom: none;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 100;
}

.mobile-btn-left,
.mobile-btn-right {
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-icon {
  width: 30px;
  height: 30px;
}

.mobile-logo {
  height: 30px;
  width: auto;
}

.mobile-nav-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #1c1e21;
  border-top: 1px solid #3a3b3c;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 100;
}

.mobile-nav-item {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.mobile-profile-avatar {
  border-radius: 50%;
  object-fit: cover;
}

.main-wrapper {
  padding: 70px 20px;
}

@media (min-width: 1024px) {
  .desktop-header {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100px;
    background: #1c1e21;
    border-right: 1px solid #3a3b3c;
    z-index: 100;
    transition: width 0.3s ease;
  }

  .desktop-header.expanded {
    width: 350px;
  }

  .sidebar {
    height: 100%;
    padding: 20px 0;
  }

  .sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
  }

  .sidebar li {
    padding: 0 20px;
  }

  .sidebar-logo {
    margin-bottom: 30px;
  }

  .sidebar-logo img {
    width: 70px;
    height: auto;
  }

  .desktop-search-container {
    display: none;
    flex-direction: column;
    gap: 10px;
  }

  .desktop-header.expanded .desktop-search-container {
    display: flex;
  }

  .desktop-search-input {
    width: 100%;
    padding: 12px;
    background-color: #3a3b3c;
    border: 1px solid #3a3b3c;
    border-radius: 8px;
    color: white;
    font-size: 14px;
  }

  .desktop-search-input:focus {
    outline: none;
    border-color: white;
  }

  .desktop-search-results {
    max-height: 400px;
    overflow-y: auto;
  }

  .sidebar a,
  .desktop-btn {
    display: flex;
    align-items: center;
    padding: 12px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s;
    width: 100%;
    text-decoration: none;
    color: white;
  }

  .sidebar a:hover,
  .desktop-btn:hover {
    background-color: #3a3b3c;
  }

  .desktop-icon {
    width: 30px;
    height: 30px;
  }

  .sidebar li a[href*="profile"] img,
  .sidebar a[href*="profile"] .desktop-icon,
  .sidebar a[href*="profile"] img {
    border-radius: 50% !important;
    object-fit: cover !important;
    width: 30px !important;
    height: 30px !important;
  }

  .mobile-header-top,
  .mobile-nav-bottom {
    display: none;
  }

  .main-wrapper {
    margin-left: 100px;
    padding: 40px;
    transition: margin-left 0.3s ease;
    display: flex;
    justify-content: center;
  }

  .main-wrapper main {
    max-width: 800px;
    width: 100%;
  }

  .desktop-header.expanded ~ .main-wrapper {
    margin-left: 350px;
  }
}
