body {
  background-color: #f5f5f5 !important;
}

a {
  text-decoration: none;
  color: #7d7c7c;
}

main {
  display: flex;
  gap: 2rem;
  padding: 2rem;
}

aside {
  width: 250px;
}

.profile-card {
  background-color: white;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0px 0px 10px 3px #a6a6a630;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 12.8rem;
}

.profile-card-yellow {
  background-color: #ffeea8;
  width: 100%;
  height: 35%;
  border-radius: 12px 12px 0 0;
}

.avatar {
  width: 60px;
  height: 60px;
  margin: 0 auto 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
}

.avatar img {
  border-radius: 50%;
}

.content {
  position: relative;
  top: 1.5rem;
}

.avatar img {
  height: 50px;
  width: 50px;
  margin-top: 2rem;
  transition: transform 0.3s ease;
}

.avatar img:hover {
  transform: translateY(-2px) scale(1.01);
  transition: 0.3s;
}

.name {
  font-weight: 600;
  margin-bottom: 0.2rem;
  padding-top: 2rem;
  font-size: 16px;
}

.role {
  font-size: 0.9rem;
  color: #7d7c7c;
  margin-bottom: 1rem;
}

.network-overview {
  background-color: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0px 0px 10px 3px #a6a6a630;
}

.network-overview h3 {
  color: #f7931e;
  font-size: 1rem;
  margin-bottom: 2rem;
  margin-top: 1.5rem;
  justify-content: center;
  align-items: center;
  display: flex;
}

.stat {
  margin-bottom: 1rem;
}

.stat strong {
  font-size: 1.3rem;
  justify-content: center;
  align-items: center;
  display: flex;
}

.stat span {
  display: block;
  color: #444;
  font-size: 0.9rem;
  justify-content: center;
  align-items: center;
  display: flex;
  margin-bottom: 1.5rem;
}

.main-content {
  flex: 1;
  background-color: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0px 0px 10px 3px #a6a6a630;
  animation: slideUp 0.4s ease-out;
}

.search-sort {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1.5rem;
  gap: 2rem;
  align-items: center;
}

.search-sort input {
  padding: 0.6rem 1rem;
  width: 85%;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.search-sort input:focus {
  outline: none;
  border-color: #ffe162;
  box-shadow: 0 0 0 3px rgba(255, 225, 98, 0.1);
  transform: translateY(-1px);
}

.sort-by {
  font-size: 1rem;
  color: #f7931e;
  border-radius: 5px;
  border-color: white;
}

.section h2 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  margin-top: 2.5rem;
  width: 100%;
  text-align: left;
}

.section {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  width: 100%;
}

.user-card {
  background: white;
  border-radius: 10px;
  text-align: center;
  padding: 1rem;
  box-shadow: 0px 0px 10px 3px #a6a6a625;
  transition: transform 0.3s ease;
}

.user-card:hover {
  transform: translateY(-5px) scale(1.02);
  transition: transform 0.3s;
}

.user-card .connect-btn {
  margin-top: 0.5rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid #f7931e;
  background: white;
  color: #f7931e;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  transition: 0.2s;
}

.connect-btn:hover {
  color: white;
  background: #f7931e;
  transition: background 0.35s;
}

.avatar-connect img {
  height: 2.5rem;
  width: 2.5rem;
  margin-top: 1rem;
  margin-bottom: -1rem;
}

.avatar-connections img {
  height: 2.5rem;
  width: 2.5rem;
  margin-top: 1rem;
  margin-bottom: -1rem;
}

.group-card {
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  width: 100%;
  box-shadow: 0px 0px 10px 3px #a6a6a625;
  transition: transform 0.3s ease;
}

.group-card:hover {
  transform: translateY(-5px) scale(1.01);
  transition: transform 0.3s;
}

.group-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.yellow {
  background-color: #ffe87d;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.group-info {
  flex-grow: 1;
  margin-left: 1rem;
}

.group-name {
  font-weight: 600;
}

.group-size {
  font-size: 0.85rem;
  color: #777;
  margin-top: 0.2rem;
}

.view-btn {
  padding: 0.3rem 0.8rem;
  border: 1px solid #f7931e;
  background: white;
  color: #f7931e;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: 0.2s;
}

.view-btn:hover {
  color: white;
  background: #f7931e;
  transition: background 0.35s;
}

.see-more {
  margin-top: 2rem;
  background-color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #7d7c7c;
  box-shadow: 0px 0px 10px 3px #a6a6a625;
  max-width: 150px;
  transition: 0.2s;
}

.see-more:hover {
  background: #ffeea8;
  color: #f7931e;
  transition: background 0.35s;
}

.see-more-group {
  margin-top: 1rem;
  background-color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #7d7c7c;
  box-shadow: 0px 0px 10px 3px #a6a6a625;
  max-width: 150px;
  transition: 0.2s;
}

.see-more-group:hover {
  background: #ffeea8;
  color: #f7931e !important;
  transition: background 0.35s;
}

.profile-icon {
  position: relative;
  display: inline-block;
}

.profile-icon img {
  cursor: pointer;
  border-radius: 50%;
  height: 1.8rem;
  object-fit: cover;
}

.profile-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: white;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  z-index: 1000;
  margin-top: 5px;
}

.profile-dropdown.show {
  display: block;
}

.profile-dropdown a {
  color: #303030;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.profile-dropdown a:hover {
  background-color: #f1f1f1;
  color: #ef8508;
}

.profile-dropdown a:first-child {
  border-radius: 8px 8px 0 0;
}

.profile-dropdown a:last-child {
  border-radius: 0 0 8px 8px;
}
