@import url('/css/fonts.css');

body {
    direction: rtl;
    font-family: 'IRANSansX', calibri, Verdana, Geneva, Tahoma, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: white;
    min-height: 97vh;
    transition: all 0.3s ease-in-out;
    margin: 0;
}

header {
    margin: 10px;
    padding: 5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border-color: blueviolet;
    border-width: 3px;
    border-style: solid;
    border-radius: 15px;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 49;
}

header div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 5px;
    flex-wrap: wrap;
}

header button {
    margin: 8px;
    padding: 5px;
    text-decoration: none;
    font-family: 'IRANSansX', calibri, Verdana, Geneva, Tahoma, sans-serif;
    color: black;
    border-radius: 15px;
    background-color: inherit;
    border-style: none;
    transition: all 0.2s ease-in-out;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

header button:hover,
header .active {
    background-color: blueviolet;
    color: white;
    scale: 1.2;
    border-radius: 15px;
    padding: 5px 10px;
}

#searchAndFilterContainer {
    margin: 1px 10px 5px 10px;
    padding: 5px;
    display: none;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    border-color: blueviolet;
    border-width: 2px;
    border-style: solid;
    border-radius: 15px;
    position: sticky;
    bottom: 15;
    background-color: white;
    z-index: 48;
}

#searchAndFilterContainer input,
#searchAndFilterContainer select {
    margin: 5px;
    padding: 2px;
}

#searchAndFilterContainer button {
    margin: 5px;
    padding: 5px;
    font-size: 16px;
}

#search-container {
    display: flex;
}

footer {
    margin: 5px;
    padding: 1px;
    background-color: rgb(150, 148, 165);
    color: #fff;
    border-radius: 15px;
    text-align: center;
}

footer a {
    text-decoration: none;
    margin: 10px;
    padding: 5px 15px;
    border-radius: 15px;
    transition: all 0.2s ease-in-out;
    color: #fff;
}

#container {
    display: flex;
    flex-direction: column;
    margin: 10px;
    background-color: white;
    flex-grow: 1;
}

.item {
    border-color: black;
    border-width: 1px;
    border-radius: 20px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    margin: 10px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease-in-out;
    background-color: #fff;

}

.subItem {
    margin: 10px;
}

.subItem span {
    padding: 5px;
    margin: 5px;
    border-radius: 10px;
    border-color: #8a2be2;
    border-style: solid;
    border-width: 1px;
}

button,
#collapse {
    margin: 5px;
    padding: 10px;
    font-family: 'IRANSansX', calibri, Verdana, Geneva, Tahoma, sans-serif;
    font-size: 20px;
    background-color: blueviolet;
    color: white;
    border-style: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

#container button:hover {
    background-color: white;
    color: blueviolet;
    border-color: blueviolet;
    border-style: solid;
    scale: 1.1;
}

dialog {
    width: fit-content;
    height: fit-content;
    background-color: #fff;
    border: 1px solid blueviolet;
    border-radius: 15px;
    position: fixed;
    top: 10%;
    align-self: center;
    transition: all 0.2s ease-in-out;
    z-index: 100;
    display: none;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
}

#overlay {
    z-index: 50;
    background-color: rgba(44, 33, 48, 0.61);
    position: fixed;
    inset: 0;
    display: none;
    transition: all 1s ease-in-out;
}

#overlay2 {
    z-index: 150;
    background-color: rgba(44, 33, 48, 0.61);
    position: fixed;
    inset: 0;
    display: none;
    transition: all 1s ease-in-out;
}

#submitjobapp {
    margin: 5px;
    padding: 10px;
    font-family: 'IRANSansX', calibri, Verdana, Geneva, Tahoma, sans-serif;
    font-size: 20px;
    background-color: blueviolet;
    color: white;
    border-style: none;
    border-radius: 15px;
    cursor: pointer;
    width: 30%;
    transition: all 0.2s ease-in-out;
    box-shadow: 2px 2px 10px rgba(186, 37, 255, 0.479);
}

.resume-item,
.company-item {
    background-color: #fff;
    box-shadow: 2px 2px 10px #ccc;
    border-radius: 15px;
    margin: 5px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
}

.step {
    display: none;
}

.step.active,
.editStep {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    border: 2px solid blueviolet;
    border-radius: 15px;
    margin: 5px;
    padding: 5px;
}

.ts-control {
    display: flex !important;
    padding: 5px;
    margin: 10px;
    flex-basis: 70%;
    border-radius: 15px;
    background-color: #fff !important;
    border: 1px solid rgb(177, 93, 255) !important;
}



input,
select {
    padding: 5px;
    margin: 10px;
    font-family: 'IRANSansX', calibri, Verdana, Geneva, Tahoma, sans-serif;
    outline: none;
    border: 1px solid rgb(177, 93, 255);
    border-radius: 30px;
}

.item2 {
    border: 1px solid #a353bb;
    padding: 5px;
    margin: 5px;
    border-radius: 15px;
}

.payitem {
    background-color: rgb(239, 252, 255);
    color: #1311b8;
    border-radius: 15px;
    border: 1px solid #1311b8;
    padding: 20px;
    margin: 10px;
    font-weight: bold;
}

address {
    font-family: 'IRANSansX', calibri, Verdana, Geneva, Tahoma, sans-serif;
    font-style: normal;
    font-size: smaller;
}

a {
    text-decoration: none;
    font-weight: bold;
    margin: 10px;
    padding: 5px 15px;
    border-radius: 15px;
    transition: all 0.2s ease-in-out;
}

a:hover {
    color: #fff;
    background-color: #1311b8;
    scale: 1.3;
}

#details {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 60%;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    background-color: white;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    border: 2px solid blueviolet;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 20px;
}

#details2 {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 60%;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
    background-color: white;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    border: 2px solid blueviolet;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 20px;
}

#errorDiv {
    position: fixed;
    z-index: 700;
}

.errorMessage {
    color: #4b0202;
    background-color: #fce1e3;
    border-radius: 15px;
    box-shadow: 2px 2px 5px rgb(53, 53, 53);
    padding: 10px;
    margin: 10px;
    width: fit-content;
    height: min-content;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    animation: fadein 0.2s ease-in-out 0s 1 forwards, fadeout 0.2s ease-in-out 0s 1 forwards, ;
}

.template {
    display: none;
}

.dynamic {
    display: flex;
    flex-wrap: wrap;
}

.rightside {
    background: linear-gradient(to bottom, #fff, #ffa1f3);
    padding: 10px;
    margin: 10px;
    border-radius: 15px;
    border: 1px solid #a353bb;
    flex-shrink: 1;
    flex-grow: 1;

}

.leftside {
    flex-shrink: 1;
    flex-grow: 10;

}

.radio {
    display: none;
}

.key {
    font-size: smaller;
    background-color: blueviolet;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
}

.delete {
    background-color: rgb(255, 102, 102);
    font-size: smaller;
    color: white;
    padding: 5px;
    border-radius: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    width: min-content;
    height: min-content;
}

.benefits {
    display: flex;
    flex-wrap: wrap;
}

.benefitItem {
    flex-basis: 15;
    border: 1px solid rgb(177, 93, 255, 0.5);
    padding: 3px;
    margin: 3px;
    border-radius: 15px;
    font-size: 15px;
}

label {
    padding: 5px;
}

textarea {
    padding: 10px;
    margin: 10px;
    font-family: 'IRANSansX', calibri, Verdana, Geneva, Tahoma, sans-serif;
    outline: none;
    border: 1px solid rgb(177, 93, 255);
    border-radius: 15px;
    min-height: 100px;
}

.interview-item {
    border: 1px solid #a353bb;
    box-shadow: 1px 1px 10px rgb(150, 148, 165);
    border-radius: 15px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.subend {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-end;
}

.subend span {
    margin: 10px;
}

.jobapp-item {
    border-color: black;
    border-width: 1px;
    border-radius: 20px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    margin: 10px 3px;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.jobpost-item {
    border-color: black;
    border-width: 1px;
    border-radius: 20px;
    box-shadow: 2px 2px 10px rgba(158, 158, 158, 0.5);
    margin: 5px;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

#notApproveForm,
#approveForm {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;

}

#notApproveForm .formItem,
#interviewStatusForm .formItem {
    padding: 5px;
    margin: 5px;
}

.formItem.active {
    background-color: blueviolet;
    color: white;
    border-radius: 15px;
}

.search-container {
    margin: 10px;
    padding: 0px;
}

.search-container input[type="search"] {
    padding: 5px;
    margin: 5px;
    border-radius: 15px;
    border: 1px solid rgb(177, 93, 255);
}

.main-item {
    border-color: black;
    border-width: 1px;
    border-radius: 20px;
    box-shadow: 2px 2px 10px rgba(158, 158, 158, 0.5);
    margin: 5px;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

#details .formItem {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#headerSection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.formItem {
    padding: 5px;
}

.inlineField {
    max-height: 500px;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    header {
        margin: 10px;
    }

    header button {
        font-size: 14px;
        margin: 2px;
    }

    footer {
        font-size: 10px;
        padding: 4px;
    }

    button {
        margin: 5px;
        padding: 10px;
        font-size: 14px;
    }

    header button:hover,
    header .active {
        background-color: blueviolet;
        color: white;
        scale: 1.1;
        border-radius: 15px;
        padding: 5px 5px;
    }

    #container {
        flex-direction: column;
        padding: 10px;
    }

    #details {
        width: 85%;
        height: fit-content;
    }

    #details button {
        font-size: 14px;
    }

    .company-item {
        flex-direction: column;
    }

    #container .item {
        width: 1vw;
        padding: 5px;
        margin: 5px;
        width: 100%;
        justify-content: space-between;
    }

    input[type='radio'] {
        padding: 2px;
        margin: 2px;
    }

    label {
        padding: 2px;
        margin: 2px;
    }

    .subItem {
        margin: 2px;
    }

    .subItem span {
        font-size: 14px;
        margin: 3px;
        padding: 3px;
    }

    button {
        font-size: 14px;
        margin: 3px;
        padding: 6px;
        border-radius: 10px;
    }

    .key {
        font-size: 8px;
    }

    .subend span {
        margin: 0;
        font-size: 12px;
    }

    h3 {
        margin: 5px 0;
    }

    .header-container {
        justify-content: space-between;
        gap: 5px;
        font-size: smaller;
    }
}