* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;

}

body {
    width: 100vw;
    background-image: url("../img/ATS/Capture.PNG");
    background-repeat: no-repeat;
    /* Birinci dəyər eni (100%), ikinci dəyər hündürlüyüdür (məsələn 70% və ya 500px) */
    background-size: 100% 100vh;
    background-position: center;
    /* Şəkli yuxarıya yapışdırır */
    background-attachment: fixed;
    min-height: 100vh;

}

header {
    display: flex;
    width: 100%;
    background-color: #F3F3F3;
    position: fixed;
    z-index: 1111;
    top: 0;
    left: 0;

}

.header_left {
    width: 15%;
    /* background: red; */
    position: relative;
}


.site_name {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    font-weight: 900;
    font-size: 22px;
    white-space: nowrap;
    text-decoration: none;
    color: #000;
    cursor: pointer;
}

.header_middle {
    width: 60%;
    padding-left: 1rem;
    /* background: violet; */
}

.header_middle ul {
    display: flex;
    list-style-type: none;
    margin-top: 2rem;
    gap: 1rem;


}

.header_middle ul li {
    font-size: 18px;
    margin-left: 1rem;
    margin-bottom: 1rem;

}

.header_middle ul li a {
    text-decoration: none;
    color: #000;
}

.header_right {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20%;
    margin-left: 15px;
    text-decoration: none;
    font-weight: bold;
    /* background: blue; */
}

.header_right a {
    font-weight: 700;
    margin-left: 15px;
    text-decoration: none;

}

.sign_part {
    color: #4b2cff;

}

.log_in {
    background: #4b2cff;
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;

}

/* SECTION */


.main-form-container {
    max-width: 75%;
    margin: auto;
    margin-top: 6rem;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.section-card {
    background: #fff;
    border-radius: 14px;
    background: #ffffff;
    border: 2px solid #d1e1f9;
    border-radius: 20px;
    display: flex;
    width: 90%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    box-shadow: 4px 4px 4px 5px #b6d1ef;
    padding: 3px 25px;
    position: relative;
}

.card-header {
    display: flex;


}

.card-header1 {
    flex-direction: column;
    position: relative;

}

.card-header_top {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
    padding-bottom: 1rem;
}

.card-header_top h3 {
    width: 90%;
}

.close-card-btn {
    width: 10rem;
    font-size: 10rem;
    position: absolute;
    right: 1rem;
    top: 0;

}

.title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    color: #000000;
    font-size: 18px;
    padding-top: 3px;
}

.dropdown {
    position: relative;
}

/* Əsas Düymə */
.btn-select,
.btn-select1,
.btn-select2 {
    position: absolute;
    background: #fff;
    color: #4f46e5;
    border: 1px solid #eef2ff;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    width: 7rem;
}

.btn-select {
    left: 40rem;


}

.btn-select1 {
    left: 35rem;
    top: -0.5rem;

}

.btn-select2 {
    left: 33rem;
    top: -1rem;
    justify-content: center;

}


/* Açılan Menyu */
.menu-list,
.menu-list1,
.menu-list2 {
    position: absolute;
    display: none;
    /* Başlanğıcda gizli */
    z-index: 1000;
    /* Digər elementlərin üstündə qalsın */
    top: calc(100% + 5px);
    /* Düymənin düz altı */
    background: #fff;
    min-width: 130px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f4ff;
    padding: 5px;
}

/* Fərdi yerləşdirmə */
.menu-list {
    left: 45rem;
    top: 1rem;
}

.menu-list1 {
    left: 40rem;
    top: 1rem;

}

/* Sağ tərəfə söykənsin */
.menu-list2 {
    left: 39rem;
    top: 1rem;

}

/* Menyu Elementləri */
.menu-list .item,
.menu-list1 .item,
.menu-list2 .item {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #1e293b;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.menu-list .item:hover {
    background: #f4f7ff;

}

.menu-list .item span {
    color: #94a3b8;
    /* '>' işarəsinin rəngi */
}

/* Sahələr */

.content-box {
    margin-top: 3rem;
    width: 95%;
    border: 1.5px dashed #cbd5e1;
    border-radius: 10px;
    padding: 20px;
    display: block;
    /* Görünən halda blok kimi çıxır */
}

/* Gizli vəziyyət - Bu hissəni mütləq əlavə et */
.content-box.hidden {
    display: none;
    border: none;
    padding: 0;
    margin: 0;
}

.no-border {
    border: none;
    padding: 0;
}

.upload-ui {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #64748b;
}

.circle-plus {
    width: 30px;
    height: 30px;
    background: #4f46e5;

    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-textarea {
    width: 100%;
    height: 200px;
    margin-top: 1rem;
    font-size: 15px;
    outline: none;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    resize: none;

}

#job_text:not(.hidden) {
    background-color: #f0f4ff;
    /* Şəkildəki mavi fon rəngi */
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #dbeafe;
    margin-top: 15px;
}

.scan-button {
    background: linear-gradient(to right, #5c17fc, #0d5eff);
    width: 10rem;
    border: none;
    border-radius: 20px;
    padding: 0.7rem 1rem;
    font-weight: 700;
    color: #FFFF;
    font-size: 15px;
    margin-left: 50rem;
}

.scan-button:hover {
    transform: scale(1.05);
    cursor: pointer;

}

.result-card {
    display: flex;
    background: #ffffff;
    border-radius: 16px;
    width: 80%;
    margin: 0 auto;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef2f6;
    margin-top: 20px;
    align-items: center;
    gap: 20px;
}

.hidden {
    display: none !important;
}


/* Faiz dairəsi üçün vizual */
.circular-progress {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: conic-gradient(#2ecc71 87%, #e0e0e0 0);
    /* 87% yaşıl */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.circular-progress::before {
    content: "";
    position: absolute;
    width: 75px;
    height: 75px;
    background: #fff;
    border-radius: 50%;
}

.percentage {
    position: relative;
    font-size: 20px;
    font-weight: bold;
    color: #2ecc71;
}

/* Mətn və Düymə stilləri */
.result-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.description {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
}

/* Düymə deaktiv olduqda solğun görünsün */
.scan-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Fırlanan spinner animasiyası */
.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.action-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.btn-errors {
    background: #f1c40f;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
}

/* Ana konteyner */
.keyword-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(160, 174, 192, 0.2);
    /* Şəkildəki dərin kölgə */
    border: 1px solid #eef2f6;
    position: relative;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Başlıq rəngləri */
.matching h4 {
    color: #2ecc71;
    font-size: 18px;
}

.missing h4 {
    color: #f1c40f;
    font-size: 18px;
}

/* "X" düyməsi */
.close-card-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    line-height: 1;
}

#analysis-section {
    width: 80%;
    margin: 0 auto;
    margin-top: 2rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Tag stilləri (Şəkildəki kimi) */
.tag-match {
    background: #e8f8f0;
    color: #2ecc71;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.tag-missing {
    background: #fff9e6;
    color: #f1c40f;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.hidden {
    display: none !important;
}

.btn-advice {
    background: #4834d4;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
}




#advice-section {
    width: 80%;
    margin: 20px auto;
    animation: slideUp 0.4s ease;
    display: flex;
    flex-direction: column;
}

.advice-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef2f6;
}



/* Update Düyməsi (Gradient Stil) */
.btn-update {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s;
}

.btn-update:hover {
    transform: scale(1.05);

}

/* Dropdown Menyusu */
.update-dropdown {
    position: relative;
    display: inline-block;
}

.advice-footer {
    margin-left: 55rem;
    margin-top: 1rem;
}

.update-menu {
    display: none;
    position: absolute;
    top: 2rem;
    /* Düymənin üstündə açılması üçün */
    left: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    overflow: hidden;
    z-index: 100;
}

.update-item {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.2s;
}

.update-item:hover {
    background: #f4f7ff;
    color: #6c5ce7;
}

.show {
    display: block !important;
}

.advice-list {
    list-style-type: none;
    position: relative;

}

.advice-list li {
    margin-left: 1rem;
    margin-top: 0.5rem;
}

.advice-list li span {
    padding-bottom: 1rem;
}

.bullet {
    position: absolute;
    left: -1rem;
}

.file-list-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

.file-uploaded-ui {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: 0.3s;
}

.file-uploaded-ui:hover {
    border-color: #3b82f6;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pdf-icon {
    background: #dbeafe;
    color: #1e40af;
    font-weight: bold;
    padding: 10px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.file-details {
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.file-size {
    color: #94a3b8;
    font-size: 12px;
}

/* Radio button stilləri */
.select-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Düymənin standart görünüşünü təmizləyirik */
.delete-file-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    outline: none;
}

/* İkonu göy rəngə boyayırıq */
.delete-file-btn i {
    color: #3b82f6;
    /* Göy rəng */
    font-size: 18px;
    transition: color 0.2s ease;
}

/* Üstünə gələndə rəngi bir az tündləşsin */
.delete-file-btn:hover i {
    color: #1d4ed8;
}

@media(max-width:1024px) {
    body {
        width: 100%;
    }

    header {
        padding: 0 20px;
        /* Kənarlardan boşluq */
    }

    .header_left {
        width: auto;
        /* Sabit faizi ləğv edirik */
    }

    .site_name {
        position: static;
        /* Absolute-dan çıxarırıq ki, məkanda yer tutsun */
        margin-top: 1.5rem;
    }

    .header_middle {
        width: auto;
        flex-grow: 1;
        /* Ortadakı boşluğu doldursun */
    }

    .header_middle ul {
        justify-content: center;
        gap: 0.5rem;
    }

    .header_middle ul li {
        font-size: 16px;
    }

    .btn-select {
        left: 30rem;
    }

    .btn-select1 {
        left: 25rem;

    }

    .btn-select2 {
        left: 23rem;
    }

    .menu-list {
        left: 35rem;
        top: 1rem;
    }

    .menu-list1 {
        left: 30rem;
        top: 1rem;

    }

    /* Sağ tərəfə söykənsin */
    .menu-list2 {
        left: 29rem;
        top: 1rem;
    }

    .scan-button {
        margin-left: 40rem;
        margin-top: 1rem;
    }
}

@media(max-width:912px) {
    .section-card {
        margin-top: 1rem;
    }

    .btn-select {
        left: 28rem;
    }

    .btn-select1 {
        left: 23rem;
    }

    .btn-select2 {
        left: 21rem;
    }

    .menu-list2 {
        left: 28rem;
        top: 1rem;
    }

    .scan-button {
        margin-left: 35rem;
        margin-top: 1rem;
    }
}

@media(max-width:853px) {
    .btn-select {
        left: 25rem;
    }

    .btn-select1 {
        left: 20rem;

    }

    .btn-select2 {
        left: 18rem;
    }

    .menu-list {
        left: 31.5rem;
        top: 1rem;
    }

    .menu-list1 {
        left: 26.5rem;
        top: 1rem;

    }

    .menu-list2 {
        left: 24.5rem;
        top: 1rem;
    }

    .scan-button {
        margin-left: 35rem;
        margin-top: 1rem;
    }
}

@media(max-width:820px) {
    header {
        padding: 0 20px;
        /* Kənarlardan boşluq */
    }

    .header_left {
        width: auto;
        /* Sabit faizi ləğv edirik */
    }

    .site_name {
        position: static;
        /* Absolute-dan çıxarırıq ki, məkanda yer tutsun */
        margin-top: 1.5rem;
    }

    .header_middle {
        width: auto;
        flex-grow: 1;
        /* Ortadakı boşluğu doldursun */
    }

    .header_middle ul {
        justify-content: center;
        gap: 0.5rem;
    }

    .header_middle ul li {
        font-size: 16px;
    }

    .section-card {
        width: 40rem;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .btn-select {
        left: 30rem;
    }

    .btn-select1 {
        left: 25rem;
    }

    .btn-select2 {
        left: 23rem;
        width: 6rem;
    }

    .menu-list {
        left: 23rem;
        top: 1rem;
    }

    .menu-list1 {
        left: 18rem;
        top: 1rem;

    }

    .menu-list2 {
        left: 16rem;
        top: 1rem;
    }

    .scan-button {
        margin-left: 32rem;
    }

}



@media(max-width:768px) {
    .section-card {
        width: 40rem;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .btn-select {
        left: 30rem;
    }

    .btn-select1 {
        left: 25rem;
    }

    .btn-select2 {
        left: 24rem;
        width: 6rem;
    }
   .menu-list {
        left: 23rem;
        top: 1rem;
    }

    .menu-list1 {
        left: 18rem;
        top: 1rem;

    }

    .menu-list2 {
        left: 16rem;
        top: 1rem;
    }


}

@media(max-width: 600px) {
    header {
        display: flex;
        flex-wrap: wrap;
        /* Elementlər sığmayanda alt sətirə keçir */
        justify-content: center;
        padding: 10px;
        gap: 10px;
    }

    .header_left {
        width: auto;
        /* Faizi ləğv edirik */
        flex: 1 1 100%;
        /* Loqonu ən üstə tək yerləşdirir, sığmasa tam en tutur */
        text-align: center;
    }

    .site_name {
        position: static;
        /* Absolute-dan tamamilə çıxardırıq */
        font-size: 18px;
        /* Fontu kiçildirik */
        margin: 0;
        display: inline-block;
    }

    .header_middle {
        width: auto;
        padding-left: 0;
    }

    .header_middle ul {
        display: flex;
        flex-wrap: wrap;
        /* Menyu elementləri sığmasa alt-alta keçsin */
        justify-content: center;
        margin-top: 5px;
        gap: 10px;
        /* Elementlər arası məsafəni azaldırıq */
    }

    .header_middle ul li {
        font-size: 14px;
        /* Fontu kiçildirik */
        margin: 0;
    }

    .header_right {
        width: auto;
        margin-left: 0;
        gap: 8px;
    }

    .header_right a {
        font-size: 13px;
        /* Giriş/Qeydiyyat fontunu kiçildirik */
        margin-left: 5px;
    }

    .log_in {
        padding: 5px 12px;
        /* Düyməni bir az kiçildirik */
    }

    .section-card {
        width: 100%;
    }

    .btn-select {
        left: 15rem;
    }

    .btn-select1 {
        left: 10rem;
    }

    .btn-select2 {
        left: 9rem;
        width: 6rem;
    }

       .menu-list {
        left: 20rem;
        top: 1rem;
    }

    .menu-list1 {
        left: 15rem;
        top: 1rem;

    }

    .menu-list2 {
        left: 13rem;
        top: 1rem;
    }
    .scan-button {
        margin-left: 20rem;
    }
}

@media(max-width:540px) {
    .scan-button {
        margin-left: 15rem;
    }
}

@media(max-width:480px) {
    section {
        margin-top: 9rem;
    }

    .btn-select {
        left: 10rem;
    }

    .btn-select1 {
        left: 5rem;
    }

    .btn-select2 {
        left: 4rem;
        width: 6rem;
    }
    
       .menu-list {
        left: 14rem;
        top: 1rem;
    }

    .menu-list1 {
        left: 9rem;
        top: 1rem;

    }

    .menu-list2 {
        left: 8rem;
        top: 1rem;
    }
}

@media(max-width:430px) {
    .scan-button {
        margin-left: 13rem;
    }
}

@media(max-width:420px) {
    .section-card {
        width: 20rem;
    }

    .btn-select {
        left: 9rem;
    }

    .btn-select1 {
        left: 4rem;
    }

    .btn-select2 {
        left: 5rem;
        width: 3rem;
    }

    .scan-button {
        margin-left: 12rem;
    }
}

@media(max-width:412px) {


    .section-card {
        width: 20rem;
    }

    .btn-select {
        left: 9rem;
    }

    .btn-select1 {
        left: 4rem;
    }

    .btn-select2 {
        left: 5rem;
        width: 3rem;
    }
}