:root {
    --body-bg-color: #e5ecef;
    --theme-bg-color: #fafafb;
    --body-color: #2f2f33;
    --active-color: #0054ff;
    --active-light-color: #e1ebfb;
    --header-bg-color: #fff;
    --search-border-color: #efefef;
    --border-color: #d8d8d8;
    --alert-bg-color: #e8f2ff;
    --subtitle-color: #000;
    --inactive-color: #f0f0f0;
    --placeholder-color: #9b9ba5;
    --time-button: #fc5757;
    --level-button: #5052d5;
    --button-color: #fff;
}

.dark-mode {
    --body-bg-color: #1d1d1d;
    --theme-bg-color: #13131a;
    --header-bg-color: #1c1c24;
    --alert-bg-color: #292932;
    --body-color: #fff;
    --inactive-color: #292932;
    --time-button: #fff;
    --level-button: #fff;
    --active-light-color: #263d63;
    --border-color: #26262f;
    --search-border-color: #26262f;
}

::placeholder {
    color: var(--placeholder-color);
}

img {
    max-width: 100%;
}

html {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--body-bg-color);

    font-size: 15px;
    color: var(--body-color);
}

.dark-light svg {
    margin-right: 8px;
    width: 22px;
    cursor: pointer;
    fill: transparent;
    transition: 0.5s;
}

.dark-mode {
    .dark-light svg {
        fill: #ffce45;
        stroke: #ffce45;
    }

    .job-card svg {
        box-shadow: none;
    }

    .search.item {
        color: var(--body-color);
        border-color: var(--body-color);
    }

    .search-location,
    .search-job,
    .search-salary {
        svg {
            color: var(--body-color);
        }
    }

    .detail-button {
        background-color: var(--inactive-color);
        color: var(--subtitle-color);
    }
}

.job {
    display: flex;
    flex-direction: column;

    margin: 0 auto;
    overflow: hidden;
    background-color: transparent;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;

    svg {
        width: 24px;
        margin-right: 12px;
    }
}


.user-settings {
    display: flex;
    align-items: center;
    font-weight: 500;

    svg {
        width: 20px;
        color: #94949f;
    }
}

.user-menu {
    position: relative;
    margin-right: 8px;
    padding-right: 8px;
    border-right: 2px solid #d6d6db;

    &:before {
        position: absolute;
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        border: 2px solid var(--header-bg-color);
        right: 6px;
        top: -1px;
        background-color: var(--active-color);
    }
}

.user-profile {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.jobboard_wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    scroll-behavior: smooth;
    padding: 30px 40px;
    overflow: auto;
}

.search-menu {
    height: 56px;
    white-space: nowrap;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    background-color: var(--header-bg-color);
    border-radius: 8px;
    width: 100%;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;

    div:not(:last-of-type) {
        border-right: 1px solid var(--search-border-color);
    }
}

.search-bar {
    height: 55px;
    width: 100%;
    position: relative;

    select {
        width: 100%;
        height: 100%;
        display: block;
        background-color: transparent;
        border: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56.966 56.966' fill='%230162ff'%3e%3cpath d='M55.146 51.887L41.588 37.786A22.926 22.926 0 0046.984 23c0-12.682-10.318-23-23-23s-23 10.318-23 23 10.318 23 23 23c4.761 0 9.298-1.436 13.177-4.162l13.661 14.208c.571.593 1.339.92 2.162.92.779 0 1.518-.297 2.079-.837a3.004 3.004 0 00.083-4.242zM23.984 6c9.374 0 17 7.626 17 17s-7.626 17-17 17-17-7.626-17-17 7.626-17 17-17z'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-size: 14px;
        background-position: 0 50%;
        padding: 0 25px 0 305px;
    }
}

.search-location,
.search-job,
.search-salary {
    display: flex;
    align-items: center;
    width: 50%;
    font-size: 14px;
    font-weight: 500;
    padding: 0 25px;
    height: 100%;

    input {
        width: 100%;
        height: 100%;
        display: block;
        background-color: transparent;
        border: none;
    }

    svg {
        margin-right: 8px;
        width: 18px;
        color: var(--active-color);
        flex-shrink: 0;
    }
}

.search-button {
    background-color: var(--active-color);
    height: 55px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    padding: 0 15px;
    border-radius: 0 8px 8px 0;
    color: var(--button-color);
    cursor: pointer;
    margin-left: auto;
}

.search.item {
    position: absolute;
    top: 10px;
    left: 25px;
    font-size: 13px;
    color: var(--active-color);
    border: 1px solid var(--search-border-color);
    padding: 8px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;

    svg {
        width: 12px;
        margin-left: 5px;
    }

    &:last-child {
        left: 185px;
    }
}

.main-container {
    display: flex;
    flex-grow: 1;
    padding-top: 30px;
}

.search-type {
    width: 270px;
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-shrink: 0;
}

.alert {
    background-color: var(--alert-bg-color);
    padding: 24px 18px;
    border-radius: 8px;

    &-title {
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 8px;
    }

    &-subtitle {
        font-size: 13px;
        color: var(--subtitle-color);
        line-height: 1.6em;
        margin-bottom: 20px;
    }

    input {
        width: 100%;
        padding: 10px;
        display: block;
        border-radius: 6px;
        background-color: var(--header-bg-color);
        border: none;
        font-size: 13px;
    }
}

.search-buttons {
    border: none;
    color: var(--button-color);
    background-color: var(--active-color);
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 14px;
}



.job-time {
    padding-top: 50px;

    &-title {
        font-size: 14px;
        font-weight: 500;
    }
}

.type-container {
    display: flex;
    align-items: center;
    color: var(--subtitle-color);
    font-size: 13px;

    label {
        margin-left: 2px;
        display: flex;
        align-items: center;
        cursor: pointer;
        font-weight: 600;
        font-size: 15px;
    }

    &+& {
        margin-top: 10px;
    }
}

.job-number {
    margin-left: auto;
    background-color: var(--inactive-color);
    color: var(--subtitle-color);
    font-size: 10px;
    font-weight: 700;
    padding: 5px;
    border-radius: 4px;
}

.job-style {
    display: none;
}

.job-style+label:before {
    content: "";
    margin-right: 10px;
    width: 16px;
    height: 16px;
    border: 1px solid var(--subtitle-color);
    border-radius: 4px;
    cursor: pointer;
}

.job-style:checked+label:before {
    background-color: var(--active-color);
    border-color: var(--active-color);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' class='feather feather-check'%3e%3cpath d='M20 6L9 17l-5-5'/%3e%3c/svg%3e");
    background-position: 50%;
    background-size: 14px;
    background-repeat: no-repeat;
}

.job-style:checked+label+span {
    background-color: var(--active-light-color);
    color: var(--active-color);
}

.searched-jobs {
    padding-left: 40px;
    width: 100%;
}

.job-cards {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 800px;
    width: 100%;
}

.height-113 {
    height: 113vh;
}

@keyframes slideY {
    0% {
        opacity: 0;
        transform: translateY(200px);
    }
}

.searched {
    &-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        animation: slideY .6s both
    }

    &-show {
        font-size: 19px;
        font-weight: 600;
    }

    &-sort {
        font-size: 14px;
        color: var(--subtitle-color);

        .post-time {
            font-weight: 600;
            color: var(--subtitle-color);
        }

        .menu-icon {
            font-size: 9px;
            color: var(--placeholder-color);
            margin-left: 6px;
        }
    }
}

.job-cards {
    padding-top: 20px;

    animation: slideY .6s both;


    @media screen and (max-width: 1212px) {
        grid-template-columns: repeat(1, 1fr);
    }

    @media screen and (max-width: 930px) {
        grid-template-columns: repeat(1, 1fr);
    }
}

.job-card {
    padding: 20px 16px;
    background-color: var(--header-bg-color);
    border-radius: 8px;

    margin-left: 4px;
    transition: .2s;
    width: 98%;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
    /* max-height: 300px; */
    margin-bottom: 20px;

    svg {
        width: 46px;
        padding: 10px;
        border-radius: 8px;
    }

    &-title {
        font-weight: 600;
        margin-top: 16px;
        font-size: 14px;
    }

    &-subtitle {
        color: var(--subtitle-color);
        font-size: 13px;
        margin-top: 14px;
        line-height: 1.6em;
    }

    &-header {
        display: flex;
        align-items: flex-start;
    }
}

.overview-card:hover {
    background: #2b2ecf;
    transition: none;
    transform: scale(1);

    svg {
        box-shadow: none;
    }

    .job-overview-buttons .search-buttons.time-button,
    .job-overview-buttons .search-buttons.level-button {
        background-color: #575ad8;
        color: #fff;
    }

    .job-card-title,
    .job-stat {
        color: #fff;
    }

    .job-card-subtitle,
    .job-day {
        color: #dedede;
    }

    .overview-wrapper .heart {
        color: #fff;
        border-color: #fff;

        &:hover {
            fill: red;
            stroke: red;
            transform: scale(1.1);
        }
    }
}

.detail-button {
    background-color: var(--active-light-color);
    color: var(--active-color);
    font-size: 11px;
    font-weight: 500;
    padding: 6px 8px;
    border-radius: 4px;

    &+& {
        margin-left: 4px;
    }
}

.job-card-buttons {
    display: flex;
    align-items: center;
    justify-content: end;
    width: 100%;
    margin-top: 4px;
}

.card-buttons,
.card-buttons-msg {
    padding: 10px;
    width: 100%;
    font-size: 12px;
    cursor: pointer;
}

.card-buttons {
    margin-right: 12px;

    &-msg {
        background-color: var(--inactive-color);
        color: var(--subtitle-color);
    }
}

.menu-dot {
    background-color: var(--placeholder-color);
    box-shadow: -6px 0 0 0 var(--placeholder-color),
        6px 0 0 0 var(--placeholder-color);
    width: 4px;
    height: 4px;
    border: 0;
    padding: 0;
    border-radius: 50%;
    margin-left: auto;
    margin-right: 8px;
}

.header-shadow {
    box-shadow: 0 4px 20px rgba(88, 99, 148, 0.17);
    z-index: 1;
}

@keyframes slide {
    0% {
        opacity: 0;
        transform: translateX(300px);
    }
}

.job-overview {
    display: flex;
    flex-grow: 1;
    display: none;
    animation: slide .6s both;

    &-cards {
        display: flex;
        flex-direction: column;
        width: 330px;
        height: 100%;
        flex-shrink: 0;
    }

    &-card+&-card {
        margin-top: 20px;
    }

    &-buttons {
        display: flex;
        align-items: center;
        margin-top: 12px;

        .search-buttons {
            background-color: var(--inactive-color);
            font-size: 11px;
            padding: 6px 8px;
            margin-top: 0;
            font-weight: 500;

            &.time-button {
                color: var(--time-button);
                margin-right: 8px;
            }

            &.level-button {
                color: var(--level-button);
            }
        }

        .job-stat {
            color: var(--active-color);
            font-size: 12px;
            font-weight: 500;
            margin-left: auto;
        }

        .job-day {
            color: var(--subtitle-color);
            font-size: 12px;
            margin-left: 8px;
            font-weight: 500;
        }
    }

    .overview-wrapper {
        display: flex;
        align-items: center;

        svg:first-child {
            width: 42px;
            margin-right: 10px;
        }

        .heart {
            background: none;
            box-shadow: none;
            width: 24px;
            padding: 4px;
            color: var(--subtitle-color);
            border: 1px solid var(--border-color);
            margin-left: auto;
            margin-bottom: auto;
        }
    }
}

.overview-detail {

    .job-card-title,
    .job-card-subtitle {
        margin-top: 4px;
    }

    .job-card-subtitle {
        font-size: 12px;
        font-weight: 500;
    }
}

.job-explain {
    background-color: var(--header-bg-color);
    margin-left: 40px;
    border-radius: 0 0 8px 8px;
}

.job-bg {
    border-radius: 8px 8px 0 0;
    object-fit: cover;
    width: 100%;
    height: 180px;
    transition: .3s;
    position: relative;
}

.job-logos {
    margin-top: -30px;
    position: relative;
    margin-bottom: -36px;
    padding: 0 20px;

    svg {
        width: 66px;
        padding: 12px;
        background-color: #fff;
        border-radius: 10px;
        border: 4px solid var(--header-bg-color);
    }
}

.job-title-wrapper {
    display: flex;
    align-items: center;


}

.job-card-title {
    font-size: 20px;
    margin-top: 0;
    font-weight: 600;
}

.job-action {
    display: flex;
    align-items: center;
    margin-left: auto;

    svg {
        width: 32px;
        border: 1px solid var(--border-color);
        color: var(--subtitle-color);
        border-radius: 8px;
        padding: 6px;

        &+svg {
            margin-left: 12px;
        }
    }
}

.job-explain-content {
    padding: 50px 25px 30px;
}

.job-subtitle-wrapper {
    display: flex;
    align-items: center;
    margin-top: 20px;

    .posted {
        margin-left: auto;
    }

    .company-name {
        color: var(--active-color);
        font-weight: 600;
        font-size: 14px;
    }

    .comp-location,
    .posted {
        color: var(--subtitle-color);
        font-size: 12px;
        font-weight: 500;
    }

    .comp-location {
        position: relative;
        margin-left: 10px;

        &:before {
            content: "";
            width: 3px;
            height: 3px;
            border-radius: 50%;
            background-color: var(--placeholder-color);
            top: 49%;
            left: -8px;
            position: absolute;
        }
    }

    .app-number {
        color: var(--body-color);
        position: relative;
        margin-left: 12px;

        &:before {
            content: "";
            width: 3px;
            height: 3px;
            border-radius: 50%;
            background-color: var(--placeholder-color);
            top: 50%;
            left: -7px;
            position: absolute;
        }
    }
}

.explain {
    &-bar {
        margin-top: 20px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        display: flex;
        height: 66px;
        padding: 0 16px;
        align-items: center;
        justify-content: space-between;
    }

    &-title {
        color: var(--subtitle-color);
        font-size: 12px;
        line-height: 40px;
        white-space: nowrap;
    }

    &-subtitle {
        font-size: 13px;
        font-weight: 500;
        margin-top: -2px;
        white-space: nowrap;
    }

    &-contents {
        height: 66px;

        &+& {
            border-left: 1px solid var(--border-color);
            padding-left: 16px;
        }
    }
}

.overview-text {
    margin-top: 30px;

    &-header {
        font-weight: 600;
        margin-bottom: 25px;
    }

    &-subheader {
        font-size: 13px;
        line-height: 2em;
    }

    &-item {
        font-size: 13px;
        position: relative;
        display: flex;

        &+& {
            margin-top: 20px;
        }

        &:before {
            content: "";
            border: 2px solid #61bcff;
            border-radius: 50%;
            height: 8px;
            width: 8px;
            margin-right: 8px;
            flex-shrink: 0;
        }
    }
}

.detail-page {
    .job-overview {
        display: flex;
    }

    .job-cards,
    .searched-bar {
        display: none;
    }

    @media screen and (max-width: 1300px) {
        .search-type {
            display: none;
        }

        .searched-jobs {
            padding-left: 0;
        }
    }
}

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

    .explain-contents,
    .explain-bar {
        height: auto;
    }

    .explain-bar {
        flex-wrap: wrap;
        padding-bottom: 14px;
    }

    .explain-contents {
        width: 50%;
    }

    .explain-contents+.explain-contents {
        padding: 0;
        border: 0;
    }

    .explain-contents:nth-child(2)~.explain-contents {
        margin-top: 16px;
        border-top: 1px solid var(--border-color);
    }

    .job-subtitle-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-subtitle-wrapper .posted {
        margin-left: 0;
        margin-top: 6px;
    }
}

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

    /* .search-job,
    .search-salary {
        display: none;
    } */

    .search-bar {
        width: auto;
    }
}

@media screen and (max-width: 760px) {
    .detail-page .job-overview-cards {
        display: none;
    }

    .user-name {
        display: none;
    }

    .user-profile {
        margin-right: 0;
    }

    .job-explain {
        margin-left: 0;
    }
}

@media screen and (max-width: 730px) {
    .search-type {
        display: none;
    }

    .search-menu {
        gap: 30px;
    }

    .search-location,
    .search-job,
    .search-salary {
        width: 140px;
        padding: 0 10px;
    }

    .searched-jobs {
        padding-left: 0;
    }

    .search-menu div:not(:last-of-type) {
        border: 0;
    }

    .job-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    /* .search-location {
        display: none;
    } */
}

@media screen and (max-width: 620px) {
    .job-cards {
        grid-template-columns: repeat(1, 1fr);
    }

    .header-menu a:not(:first-child) {
        margin-left: 10px;
    }
}

@media screen and (max-width: 590px) {
    .header-menu {
        display: none;
    }
}

@media screen and (max-width: 520px) {
    .search.item {
        display: none;
    }

    /* .search-bar {
        flex-grow: 1;
    } */

    .search-bar input {
        padding: 0 0 0 6px;
    }

    .search-button {
        /* margin-left: 16px; */
    }

    .searched-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .searched-sort {
        margin-top: 5px;
    }

    .main-container {
        padding-top: 20px;
    }
}

@media screen and (max-width: 380px) {
    .explain-contents {
        width: 100%;
        margin: 0;
    }

    .explain-contents:nth-child(2)~.explain-contents {
        margin: 0;
        border: 0;
    }

    .jobboard_wrapper {
        padding: 20px;
    }

    .header {
        padding: 0 20px;
    }
}

.select2-container--default .select2-selection--single {
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    height: 100% !important;
    padding: 13px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    margin-top: 12px !important;
}

:focus-visible {
    outline: none !important;
}

.company {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover; 
    margin-bottom: 10px;
    position: relative;
}

.company i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

}



.job-time-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.job-card-header {
    position: relative;
}
