@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');


:root {
    --font-family: 'Poppins', sans-serif;
    --primary-blue: #6aacf1;  
    --secondary-dark: #294e6d;
    --white: #ffffff;  
    --hover-color: #ddddddcc;
    --dark-grey: #444444;   
    --light-grey: #f4f4f4;
    --accent-green: #32c15d; 
    --icon-grey: #9e9e9e; 
    --male-blue: #007aff;
    --female-pink: #e91e63;
    --filter-active-bg: #1a4565;
    --filter-active-text: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.1);

    --tran-02: all 0.2s ease;
    --tran-03: all 0.3s ease;
    --tran-04: all 0.4s ease;
    --tran-05: all 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    height: 100vh;
    width: 100%;
    background-color: #ffffffd7;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.sidebar {
    position: fixed;
    top:10,5%;  
    left:0;
    height: 100%;
    width: 265px;
    background: var(--secondary-dark);
    padding: 14px;
    transition: var(--tran-05);
    z-index: 2;
  }

.box {
    background: var(--primary-blue);
    padding: 14px;
    top: 0;
    left: 50%;
    width: 208,2vh;
    z-index: 2;
    height: 100px;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
  }
.box-title {
    font-size: 2em;
    font-weight: 600;
    color: var(--white);
    text-align: center;
    display: flex;
    justify-content: center;
    margin-top: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 10px;
    
}

.sidebar .image-text {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
  }

.sidebar .image-text .image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .sidebar header .toggle {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    height: 25px;
    width: 25px;
    background: var(--primary-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: var(--secondary-dark);
    font-size: 22px;
    cursor: pointer;
  } 
  .sidebar .toggle:hover {
    scale: 1.1;
    transition: var(--tran-02)
  } 
  .sidebar .toggle:active {
    scale: 0.9;
    transition: var(--tran-02)
  }
  
  .sidebar header {
    position: relative
  }

  .sidebar li {
    height: 50px;
    list-style: none;
    margin-top: 20px;
    display:flex;
    margin-left: -10px;
    align-items: center;
    transition: var(--tran-03);
  }
  
  .sidebar li .icon {
    display:flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    font-size: 20px;
  }

  .sidebar li .icon,
  .sidebar li .text {
    color: var(--white);
    transition: var(--tran-04)
  }
  
  .sidebar li a {
    text-decoration: none;
    color: var(--white);
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: var(--tran-04);
    padding: 0 10px;
    position: relative;
  }
  
  .sidebar li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 10px;
    background-color: var(--primary-blue);
    transition: var(--tran-04);
  }

  .sidebar li a:hover::after {
    width: calc(100% - 20px);
  }
  
  .sidebar li a:hover {
    background: var(--filter-active-bg);
    transform: translateX(5px);
  }
    
  .sidebar li a:hover .icon,
  .sidebar li a:hover .text {
    color: var(--primary-blue);
  }

.sidebar .menu-bar {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .sidebar.close {
    width: 88px;
  }
  
  .sidebar.close .text {
    display: none;
  }



.sidebar .header-text {
    color: var(--white);
    text-underline-offset: 10px;
    text-decoration: underline;
    margin-left: 85px;
} .sidebar .sort-by {
    color: var(--white);
    text-underline-offset: 10px;
    text-decoration: underline;
    margin-left: 85px;
}

.user-card {
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 20px;
    width: 300px;
    height: 300px;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--primary-blue);
    transition: var(--tran-05);
    z-index: 3;
    cursor: pointer;
}

.user-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg, var(--primary-blue), transparent, var(--primary-blue));
    z-index: -1;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.user-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg, var(--primary-blue), transparent, var(--primary-blue));
    z-index: -1;
    border-radius: inherit;
    animation: rotate 2s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.user-card:hover::before,
.user-card:hover::after {
    opacity: 1;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.user-card img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-direction: column;
    margin-left: 100px;

}

.user-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.user-card p {
    font-size: 16px;
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    text-decoration: underline;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.user-card h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 10px;
    color: var(--accent-green);
    text-align: center;
    margin-top: 30px;

}

#gender {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.user-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-left: 150px;
    margin-top: 20px;
    height: calc(100vh - 140px);
    overflow-y: auto;
    scroll-behavior: smooth;
}

.user-card:hover {
    scale: 1.05;
    transition: var(--tran-05);
    border: none;
}

.search-input {
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.sidebar.close .search-input {
  display: none;
}

.search-bar {
  margin-top: 100px;
}
