/* ==========================================================================
   PROFILE SIDEBAR
   ========================================================================== */

/* Sidebar Container */
.profile-sidebar {
  width: 260px;
  background: white;
  border-radius: 15px;
  padding: 15px 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  height: fit-content;
  flex-shrink: 0;
}

/* User header */
.sidebar-user-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.user-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* Navigation */
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  text-decoration: none;
  color: #718096;
  border-radius: 12px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-item:hover {
  background: #f7fafc;
  color: #2d3748;
}

.nav-item.active {
  background: #eef2ff;
  color: #4a5568;
  font-weight: 600;
}

/* Icons */
.nav-icon {
  width: 11px;
  height: 11px;
}

.sidebar-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.logout {
  color: red;
}

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

/* Tablets & Small Laptops */
@media screen and (max-width: 1024px) {
.sidebar-user-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}


  .nav-item {
    flex-shrink: 0;
    padding: 10px 14px;
    font-size: 14px;
    border-radius: 10px;
    gap: 8px;
  }

  .nav-item.active {
    width: 100%;
    padding: 10px 14px;
  }

  .sidebar-icon {
    width: 16px;
    height: 16px;
  }
  .profile-layout {
        grid-template-columns: 1fr; /* Makes the sidebar stack or disappear */
        gap: 1.5rem;
    }

    /* If you want the sidebar hidden by default on mobile until the Menu button is clicked */
    .profile-sidebar {
        display: none; 
    }

    /* When the menu button toggles it */
    .profile-sidebar.active {
        display: block; 
    }
}

@media screen and (max-width: 991px){
      .profile-layout > .profile-sidebar {
        display: none !important;
    }

    .profile-layout > .sidebar-nav {
        display: none !important;
    }
}

/* Mobile Devices */
@media screen and (max-width: 768px) {


    .profile-layout > .profile-sidebar {
        display: none !important;
    }

    .profile-layout > .sidebar-nav {
        display: none !important;
    }

    
  .profile-sidebar {
    padding: 10px 12px;
    border-radius: 12px;
    gap: 8px;
  }

  .nav-item {
    padding: 9px 12px;
    font-size: 13px;
    gap: 6px;
  }

  .nav-item.active {
    width: auto;
    padding: 9px 12px;
  }

  .sidebar-icon {
    width: 15px;
    height: 15px;
  }
}

@media screen and (max-width: 480px) {

  .profile-sidebar {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .sidebar-user-header {
    display: none;
  }

  .nav-item {
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
    gap: 8px;
    justify-content: flex-start;
  }

  /* Keep the text visible */
  .nav-item span {
    display: inline;
  }

  .nav-item.active {
    background: #eef2ff;
    color: #4a5568;
    font-weight: 600;
    width: 100%;
  }

  .sidebar-icon {
    width: 16px;
    height: 16px;
  }
}

/* Very Small Devices */
@media screen and (max-width: 360px) {

  .profile-sidebar {
    padding: 6px 8px;
  }

  .nav-item {
    padding: 8px;
  }

  .sidebar-icon {
    width: 16px;
    height: 16px;
  }
}