/* CSS Configurations */
:root {
    --fg: #fff;
    --bg: rgba(81, 2, 94, 0.5);


    --violet: #4b096b;
    --green: #00e5bc;
    --blue: #33a9ff;
    --pink: rgba(166, 0, 129, 0.75);
    --purple: #651e72;
    --violet: #b67dfc;
    --yellow: #ffdeab;
    --magenta: #8B084E;
    --popup-bg: #27122c;
    --white: #fff;

    --radius: 0.75rem;
    --header-height: 7vh;
    --content-height: calc(100vh - var(--header-height));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
    display: inline-block;
}

select {
    border-right: 0.8rem solid transparent;
}

/* main body styling */
body {
    background: linear-gradient(135deg, #431b68, #2d094d);
    color: var(--fg);
    font-family: "Poppins", sans-serif;
    background-image: url("../img/leaderboard-img/background.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: top left;
}

/* navbar styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0rem 10rem;
    height: 7vh;
    background-color: rgba(74, 0, 87, 0.75);
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(26.1px);
}

.navbar-logo {
    font-size: 1.375rem;
    font-weight: bold;
}

.navbar-logo:hover {
    cursor: pointer;
    opacity: 80%;
}

.navbar-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
}

.navbar-button:hover {
    cursor: pointer;
    opacity: 80%
}

.navbar-button {
    background: transparent;
    border: none;
}

/* leaderboard styling */
.leaderboard {
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: top;
    align-items: center;
    gap: 2rem;
}

/* main {
    margin: 5rem 0;
    margin: -5svh;
} */
 main{
    margin-top: -5svh;
 }

/* leaderboard outerlayout styling */
.leaderboard-table {
    position: relative;
    padding: 10px;
    background: var(--bg);
    border-radius: var(--radius);
    backdrop-filter: blur(38.7px);
    z-index: 1;
    overflow: visible;
}

.leaderboard-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 4px;
    background: linear-gradient(to left, #df9229 0%, #e7dda9 49%, #df9229 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    pointer-events: none;
}

/* leaderboard inner layout styling */
.leaderboard-title span {
    font-size: 2.625rem;
    font-family: "Montserrat", sans-serif;
    font-weight: 900;
    color: #d9d9d9
}

/* filter buttons styling */
.leaderboard-filters {
    margin: 1rem 1rem;
    padding-top: 1rem;
}

.leaderboard-filters form {
    display: flex;
    justify-content: space-around;
}

.filter-selectors {
    display: flex;
    justify-content: center;
    align-items: center;
}

.leaderboard-filter-button {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--fg);
    width: 13.75rem;
    height: 2.625rem;
    background-color: var(--pink);
    border-radius: 0.625rem;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.75);
    padding-left: 1rem;
    margin-right: 1.5rem;
    border-color: transparent;
}
.req-webinar{
    display: flex;
    justify-content: center;
}
.connect-request-btn{
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--fg);
    width: 13.75rem;
    height: 2.625rem;
    background-color: var(--pink);
    border-radius: 0.625rem;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.75);
    border-color: transparent;
} 

/* search button styling */
.filter-search {
    font-family: "Inter", sans-serif;
    background-color: var(--pink);
    border: none;
    border-radius: 0.625rem;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.75);
    margin-left: 12rem;
    width: 23rem;
    height: 2.625rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 1.2rem;
}

.filter-search input {
    height: 100%;
    border: none;
    flex-grow: 1;
    background: none;
    color: white;
}

.filter-search input:focus {
    outline: none;
}

.leaderboard-search-button::placeholder {
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

.leaderboard-content{
    max-height: 40rem;
    overflow-y: scroll;
    position: relative;
}

/* leaderboard headers styling */
.leaderboard-headers {
    position: sticky;
    z-index: 10;
    top: 0;
    display: grid;
    grid-template-columns: 2fr 1.3fr 1.3fr 1.5fr;
    height: 3.5rem;
    margin: 0 1rem;
    border-radius: 0.75rem;
    background-color: #8D027A;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.75);
}

.header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 1rem;
}

/* all header icons */
.header-icon {
    transform: translateY(5%);
    height: 22px;
    width: 22px;
    margin-right: 0.5rem;
}

.uparrow-icon {
    transform: translateY(20%);
    height: 24px;
    width: 24px;
}

/* leaderboard entry (each row) styling */
.leaderboard-entry {
    display: grid;
    grid-template-columns: 2fr 1.3fr 1.3fr 1.5fr;
    height: 3.5rem;
    /* margin: 1rem 1rem; */
    margin: 1rem 1rem 1.5rem 1rem;
    border-radius: 0.75rem;
    backdrop-filter: blur(26.1px);
    background-color: var(--pink);
    place-content: center;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.75);
}

.candidate-pfp {
    height: 70px;
    width: 70px;
    margin: 0.5rem 1rem 0.5rem 1.5rem;
    border: 3.5px solid #df9229;
    border-radius: 50%;
}

.candidate-bio {
    display: flex;
    align-items: center;
}

.candidate-names {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
}

.candidate-username {
    font-family: "Inter", sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
}

.candidate-name {
    font-family: "Inter", sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
}

.header p,
.candidate-proficiency p,
.candidate-tech-skills p,
.candidate-industry p {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
}

.candidate-proficiency,
.candidate-tech-skills,
.candidate-industry {
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

footer{
    padding-top: 5svh;
}
.footer-bottom p{
    margin-bottom: 0!important;
}
.Proficiency_bar_td {
    vertical-align: middle !important;
  }
  .Proficiency_bar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    margin: auto;
    position: relative;
  }
  .Proficiency_bar_pointer{
    position: absolute;
    bottom: -80%;
    left: var(--i);
    z-index: 99;
    color: #be89ff;
  }
  .Proficiency_bar p {
    font-size: 6px;
    color: #fff;
  }
  .Proficiency_bar .Proficiency_bar_red {
    height: 13px;
    width: 33.33%;
    background-color: yellow;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
  }
  .tooltip-content{
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    white-space: nowrap;
    padding: 4px 9px;
    border-radius: 7px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
    font-size: 12px!important;
  }
  
  .tooltip-content::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border: 7px solid;
    border-color: #000 #0000 #0000 #0000;
  }
  
  .Proficiency_bar_red:hover #tooltip-content1 {
    top: -200%;
    visibility: visible;
    opacity: 1;
  }
  
  
  .Proficiency_bar .Proficiency_bar_yellow {
    height: 13px;
    width: 33.33%;
    background-color: rgb(255, 109, 12);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
  }
  .Proficiency_bar_yellow:hover #tooltip-content2 {
    top: -200%;
    visibility: visible;
    opacity: 1;
  }
  .Proficiency_bar .Proficiency_bar_green {
    height: 13px;
    width: 33.33%;
    background-color: #0cff50;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
  }
  .Proficiency_bar_green:hover #tooltip-content3 {
    top: -200%;
    visibility: visible;
    opacity: 1;
  }

  form h3,form label{
    color: #000!important;
  }
/* Responsiveness for large screens */
@media screen and (max-width: 1280px) {
    .leaderboard-filters form {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-selectors {
        flex-direction: row;
        width: 100%;
        gap: 1rem;
    }

    .leaderboard-filter-button {
        width: 100%;
        margin-right: 0;
    }

    .filter-search {
        width: 100%;
        margin-left: 0;
    }
}

/* Responsiveness for medium screens */
@media screen and (max-width: 960px) {
    .navbar {
        justify-content: space-around;
        padding-left: 0;
        padding-right: 0;
    }

    .leaderboard-title span {
        font-size: 2rem;
    }

    .leaderboard-table {
        width: 45rem;
        height: auto;
    }

    .candidate-names {
        gap: 0rem;
    }

    .candidate-pfp {
        margin-left: 1rem;
    }

}

/* Responsiveness for small screens */
@media screen and (max-width: 760px) {
    .leaderboard-table {
        width: 35rem;
    }

    .leaderboard-headers,
    .leaderboard-entry {
        min-width: 46rem;
        /* z-index: 0; */
    }

    .leaderboard-content {
        overflow-x: scroll;
    }

}

/* Responsiveness for mobile devices */
@media screen and (max-width: 640px) {
    .leaderboard-table {
        width: 30rem;
        overflow-y: visible;
    }

    .leaderboard {
        height: auto;
    }
}

@media screen and (max-width: 540px) {
    .leaderboard-table {
        width: 25rem;
    }

    .leaderboard-headers,
    .leaderboard-entry {
        min-width: 50rem;
    }
}

@media screen and (max-width: 460px) {
    .leaderboard-table {
        width: 23rem;
    }
}

@media screen and (max-width: 400px) {
    .leaderboard-table {
        width: 21rem;
    }

    .leaderboard-title span {
        font-size: 1.8rem;
    }

    .search-icon{
        transform: translateX(-90%);
    }
}