/* 
Primary: #2563EB
Dark: #111827
Gray: #6B7280
Background: #F9FAFB
Card White: #FFFFFF
*/

/* 
Applied: #EBF0FD 
Interview: #FDF6E3
Offer: #EEF4F2
Rejected: #FCEAEC
*/

.inter-heading {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.25rem;
    background-color: #F9FAFB;
    color: #111827;
    line-height: 1.5;
    letter-spacing: 1px;
}

main {
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    margin-bottom: 10rem;
}

section {
    width: 100%;
}

.logo {
    width: 15rem;
    height: auto;
}

.blueButton {
    background-color: #2563EB;
    color: #FFFFFF;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 0.5rem;
    cursor: pointer;
    max-width: fit-content;
}

.whiteButton {
    background-color: #F9FAFB;
    color: #111827;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 0.5rem;
    cursor: pointer;
    max-width: fit-content;
}

.blueButton:hover,
.whiteButton:hover {
    transform: scale(1.05);
}

.icon {
    width: 1.1rem;
    height: auto;
}

.blockquote-footer::before {
    content: "";
}

.bagLogo {
    width: 4rem;
    height: auto;
}


/*##### header & navbar styling #####*/
header {
    padding: 1rem 3rem;
    background-color: #F9FAFB;
    border-bottom: 1px solid rgb(107, 114, 128, 0.2);
}

.navbar-nav {
    gap: 1rem;
}

.nav-item {
    font-size: 1.3rem;
    letter-spacing: 2px;
}


/*##### metric cards section styling #####*/
.metricCardsContainer {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.metricCard h3 {
    color: #111827;
}

.metricTopDiv {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #0000ff;
    font-weight: bold;
    width: 100%;
}

.metricCard {
    background-color: rgb(0, 0, 255, 0.1);
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 2rem;
    width: 20%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.metricCard:hover {
    transform: scale(1.05);
}

.metricIcon {
    min-width: 1.5rem;
    min-height: 1.5rem;
    background-image: url('assets/icons/appliedIcon.webp');
    background-size: cover;
    background-position: center;
}



.metricCard:nth-child(2) {
    background-color: rgb(255, 165, 0, 0.1);
}

.metricCard:nth-child(2) .metricTopDiv {
    color: #ffa500;
}

.metricCard:nth-child(2) .metricIcon {
    background-image: url('assets/icons/interviewIcon.webp');
}



.metricCard:nth-child(3) {
    background-color: rgb(0, 128, 0, 0.1);
}

.metricCard:nth-child(3) .metricTopDiv {
    color: #008000;
}

.metricCard:nth-child(3) .metricIcon {
    background-image: url('assets/icons/offerIcon.webp');
}



.metricCard:nth-child(4) {
    background-color: rgb(255, 0, 0, 0.1);
}

.metricCard:nth-child(4) .metricTopDiv {
    color: #ff0000;
}

.metricCard:nth-child(4) .metricIcon {
    background-image: url('assets/icons/rejectedIcon.webp');
}


/*##### filter section styling #####*/
.filterSection {
    display: flex;
    justify-content: center;
    align-items: center;
}

#searchInput {
    width: 60%;
    border: 1px solid rgb(107, 114, 128, 0.2);
    border-radius: 0.5rem;
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/*##### job list section styling #####*/
.jobListSection {
    margin-top: 2rem;
}

.jobListSection,
.jobListContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.jobListContainer>.card {
    width: 80%;
    padding: 2rem;
    border: none;
    border-radius: 1rem;
    background-color: rgb(107, 114, 128, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.hiddenDetails {
    display: none;
}

.leftSideCard,
.rightSideCard {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.middleSideCard {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
}

.jobListContainer p {
    font-size: 1.15rem;
}

.edit-button {
    background-color: rgb(0, 128, 0, 0.1);
    color: #008000;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    cursor: pointer;
    max-width: fit-content;
}

.delete-button {
    background-color: rgb(255, 0, 0, 0.1);
    color: #ff0000;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    cursor: pointer;
    max-width: fit-content;
}

.edit-button:hover,
.delete-button:hover {
    transform: scale(1.05);
}


/*##### footer styling #####*/
footer {
    background-color: #6B7280;
    color: #FFFFFF;
    padding: 1rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgb(107, 114, 128, 0.2);
}

/* grey scale to white image */
footer .logo {
    filter: grayscale(100%) brightness(150%);
}

.githubLink {
    color: #01feaa;
    text-decoration: none;
}

.githubLink:hover {
    color: #f2394e;
    transform: scale(1.05);
}


/*############### responsive design ###############*/
/* screens btn 768px and 992px */
@media (min-width: 768px) and (max-width: 992px) {
    .metricCardsContainer {
        justify-content: center;
        gap: 1rem;
    }

    .metricCard {
        width: 25%;
    }

    #searchInput {
        width: 80%;
    }

    .jobListContainer>.card {
        width: 100%;
    }

    footer,
    header {
        padding: 1rem;
    }
}

/* screens btn 577px and 768px */
@media (min-width: 577px) and (max-width: 768px) {
    .metricCardsContainer {
        justify-content: center;
        gap: 0.8rem;
    }

    .metricCard {
        width: 30%;
        padding: 1rem;
    }

    .metricCard h5 {
        font-size: 1.15rem;
    }

    #searchInput {
        width: 80%;
    }

    .jobListContainer>.card {
        width: 100%;
        padding: 1rem;
    }

    .metricTopDiv {
        gap: 0.1rem;
    }

    .leftSideCard,
    .rightSideCard {
        gap: 0.5rem;
    }

    .rightSideCard {
        gap: 0.5rem;
    }

    footer,
    header,
    main {
        padding: 1rem;
    }

    footer {
        flex-wrap: wrap;
    }
}

/* screens below 576px */
@media (max-width: 576px) {
    .metricCardsContainer {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .metricCard {
        width: 45%;
        padding: 1rem;
    }

    .rightSideCard {
        flex-direction: column;
        gap: 0.5rem;
    }

    .leftSideCard,
    .rightSideCard {
        gap: 0.5rem;
    }

    #searchInput {
        width: 80%;
    }

    .jobListContainer>.card {
        width: 100%;
        padding: 1rem;
    }

    .metricTopDiv {
        gap: 1rem;
    }

    footer,
    header,
    main {
        padding: 1rem;
    }

    footer {
        flex-wrap: wrap;
    }
}

/* screens below 490px */
@media (max-width: 490px) {
    footer {
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
        align-items: center;
    }

    .jobListContainer>.card {
        width: 100%;
        flex-direction: column;
    }

    .rightSideCard {
        flex-direction: row;
        gap: 1rem;
    }

    .leftSideCard,
    .rightSideCard {
        gap: 1rem;
    }

    .metricTopDiv {
        gap: 0.5rem;
    }
}

/* screens below 360px */
@media (max-width: 360px) {
    .metricCardsContainer {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .metricCard {
        width: 100%;
        padding: 1rem;
    }

    .rightSideCard {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .leftSideCard,
    .rightSideCard {
        gap: 0.5rem;
    }

    #searchInput {
        width: 100%;
    }

    .jobListContainer>.card {
        width: 100%;
        padding: 1rem;
        flex-direction: column;
    }

    .metricTopDiv {
        gap: 1rem;
    }

    main {
        padding: 1rem;
    }

    footer {
        padding: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        font-size: 1.15rem;
    }

    header {
        padding: 1rem 0.5rem;
    }

    .logo {
        width: 10rem;
    }
}