/*.success-message{*/
/*    border-radius: 16px;*/
/*    background-color: #9bf59b;*/
/*    color: #000000;*/
/*    padding: 16px;*/
/*    width: 300px;*/
/*    margin: 32px 0;*/
/*    text-align: center;*/
/*}*/
/*.success-message-wrapper {*/
/*    position: relative;*/
/*    max-width: 400px;*/
/*    margin: 20px auto;*/
/*    border-radius: 5px;*/
/*    overflow: hidden;*/
/*    box-shadow: 0 2px 8px rgba(0,0,0,0.1);*/
/*    position: fixed;*/
/*    top: 200px;*/
/*    left: 60px;*/
/*    direction: rtl;*/
/*}*/

/*.success-message {*/
/*    padding: 12px 15px;*/
/*    background-color: #d4edda;*/
/*    color: #155724;*/
/*    font-size: 16px;*/
/*    text-align: center;*/
/*    direction: rtl;*/
/*}*/

/*.success-message-timer {*/
/*    position: absolute;*/
/*    bottom: 0;*/
/*    right: 0;*/
/*    height: 4px;*/
/*    background-color: #28a745;*/
/*    width: 0%;*/
/*    transition: width 0.1s linear;*/
/*    direction: rtl;*/
/*}*/
input, select, textarea{
    font-size: 14px !important;
    border-radius: 16px !important;
}
input, select{
    height: 32px !important;
    padding: 0 10px !important;
}
.menu-container .menu-item{
    color: #c2bcbc;
}
.menu-container .menu-item.active{
    color: #000000;
    background: #e65409;
}
.sidebar-show-btn{
    display: none;
    position: absolute;
    top: -10px;
    left: -20px;
    background-color: gray;
    border-radius: 50%;
    /*padding: 4px 8px;*/
    color: white;
    cursor: pointer;
    transition: all ease 200ms;
}
#user-profile-mobile-title{
    display: none;
}
.tab-container {
    width: 100%;
    margin: 0px auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}
.tab-buttons {
    display: flex;
    border-bottom: 2px solid #ddd;
    max-width: 600px;
}
.tab-buttons button {
    flex: 1;
    padding: 10px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    color: black;
    font-size: 16px;
    transition: background 0.2s;
    border-radius: 0;
}
.tab-buttons button.active {
    background: #E65409;
    color: #fff;
    font-weight: bold;
}
#tab2{
    background: #FFFFFF;
}
.tab-content {
    display: none;
    padding: 16px;
    /*border: 1px solid #ddd;*/
    /*border-top: none;*/
}
.tab-content.active {
    display: block;
}
.company-jobs-header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 40px;
    align-items: center;
}
.user-profile{
    background: #FFFFFF;
    width: 80%;
    transition: all ease 200ms;
}
.user-courses-container{
    margin: 4px;
}
.user-advanced-info{
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: flex-start;
    align-items: flex-start;
}
.profile-pic{
    width: 100px;
    margin-bottom: 24px;
    border-radius: 16px;
}
.form-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    min-width: 500px;
    margin-right: 8px;
}
.form-row.required.history::after{
    content: ' سال ';
    margin-right: 40px;
}
.form-row.required label::before {
    content: '*';
    margin-left: 8px;
    color: red;
}
.form-row label {
    min-width: 150px;
    font-weight: bold;
}
.english_skill {
    display: flex;
    gap: 8px;
    margin: 8px 16px;
}
.english_skill label {
    min-width: unset !important;
}
.form-row input,
.form-row select {
    flex: 1;
    padding: 6px;
    border-radius: 16px;
    width: 100%;
}
.birth-container {
    display: flex;
    flex-direction: row;
    gap: 3%;
    width: 100%;
    justify-content: space-between;
}
#birth-row{
    /*flex-direction: row;*/
}
.birthday-row{
    display: flex;
    flex-direction: row;
    margin: 4px 0;
    width: 30% !important;
}
.birthday-row:not(:first-child)::before {
    content: '/ ';
    align-items: center;
    align-self: center;
    font-size: 24px;
    margin-left: 2px;
}
.birthday-row label{
    width: 50px;
}
.birthday-row input{
    width: 40px;
}
#education-row, #courses-row{
    flex-direction: column;
}
#education-row label, #courses-row label{
    width: unset;
}
.internal-form-row{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    margin-right: 24px;
    gap: 8px;
}
.internal-form-row input, .internal-form-row select{
    max-width: 70% !important;
}
#coursesWrapper, educationsWrapper{
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.educations-container, .courses-container {
    width: 100%;
}
.course-item, .education-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 16px 0;
}
.education-item label, .course-item label{
    width: 100%;
}
#addCourse, #addEducation, .inline-btn{
    background-color: unset;
    color: black;
    border-radius: 0px;
    text-decoration: underline;
    padding: 0 !important;
}
.inline-btn:hover{
    background: unset;
    color: black;
}
#interests-section{
    display: flex;
    flex-direction: column;
}
.interests {
    position: relative;
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: row;
    gap: 20px;
}
input#interests {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 16px;
    border: 1px solid #ccc;
}
input#interests:focus {
    outline: none;
    border-color: #E65409;
    box-shadow: 0 0 5px rgba(230,84,9,0.5);
}
.showing-interests{
    /*background-color: #99efbe;*/
    border-radius: 16px;
    padding: 16px;
    max-width: 500px;
    margin: 20px 0;
}
#profile-pic-input{
    display: flex;
    flex-direction: column;
}
#save-user-advanced-info {
    width: 200px;
    margin: 20px auto;
    font-size: 18px;
    font-weight: 600;
}
@media (max-width: 768px) {
    .success-message-wrapper{
        /*position: fixed;*/
        top: 450px;
        left: 16px;
    }
    .profile-title {
        font-size: 24px;
    }
    #user-profile-mobile-title.hidden{
        display: none;
    }
    #user-profile-mobile-title{
        display: block;
        margin: 32px auto;
        text-align: center;
    }
    .sidebar-show-btn{
        width: 40px;
        height: 40px;
        border: 2px solid black;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 20px;
    }
    .user-profile.show{
        width: 97%;
        display: flex;
    }
    .user-profile{
        width: 40%;
    }
    .user-profile .tab-container{
        display: none;
    }
    .user-profile.show .tab-container{
        display: flex;
        margin: 10px;
    }
    .sidebar-menu-profile{
        width: 60%;
    }
    .sidebar-menu-profile.hide{
        width: 20%;
    }
    .tab-buttons button{
        font-size: 12px;
    }
    .form-row{
        min-width: 100%;
        flex-direction: column;
    }
    .form-row input, .form-row select{
        font-size: 12px !important;
    }
    .form-row label{
        min-width: unset !important;
        font-size: 12px;
        margin: 4px;
    }
    #save-user-advanced-info {
        width: 80%;
        margin: 20px auto;
    }
    #birth-row{
        flex-direction: column;
    }
    .birthday-row select{
        font-size: 12px !important;
    }
    .birthday-row label{
        width: 30% !important;
    }
}

/*Interests section*/
.showing-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.tag {
    background: #E65409;
    color: white;
    padding: 4px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    transition: all 0.2s;
}
.tag:hover {
    transform: scale(1.05);
}
.tag button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 !important;
}

.suggestions {
    border: 1px solid #ccc;
    max-height: 140px;
    overflow-y: auto;
    position: absolute;
    top: 100%; /* دقیقا زیر اینپوت */
    left: 0;
    background: white;
    width: 100%;
    z-index: 2;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.suggestion {
    padding: 8px 10px;
    cursor: pointer;
    transition: background 0.2s;
}
.suggestion.active, .suggestion:hover {
    background: #fa8347;
}

@media(max-width: 600px){
    input#interests { font-size: 13px; }
    .tag { font-size: 12px; padding: 4px 8px; }
}
.error {
    border: 2px solid red !important;
}

/*drawer section*/
.drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 8px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: 1060;
    padding: 0 32px;
    overflow-y: scroll;
}
.drawer.open {
    right: 0;
}
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 20%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 8;
}
.drawer.open + .drawer-overlay {
    display: block;
}
.drawer-header{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 32px 0;
}
.drawer-panel {
    padding: 20px;
}
.drawer-close {
    position: absolute;
    top: 35px;
    left: 20px;
    background: white;
    color: red;
    border: none;
    font-size: 40px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    padding: 0;
    width: 30px;
    height: 30px;
}
.drawer-close:hover {
    background: unset;
    color: unset;
}

/* tables in profile panel */
.myTable th:first-child,
#traineeTable th:first-child,
#usersTable th:first-child {
    width: 50px;
}

#usersTable{
    width: 100% !important;
}

/* job request form*/
.form-container {
    display: flex;
    flex-direction: column;
    margin-top: 32px;
    gap: 56px;
}
.job-request-form-class{
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: flex-start;
}
.job-form-row{
    display: flex;
    flex-direction: row;
    gap: 1%;
    align-items: flex-start;
}
.job-form-row.centered{
    align-items: center !important;
}
.job-form-row.required label::before {
    content: '*';
    margin-left: 8px;
    color: red;
}
.job-form-row > :first-child{
    width: 30%;
    text-align: left;
}
.job-form-row > :last-child{
    width: 68%;
}
.job-form-row .repeater-container{
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.job-form-row .repeater-item{
    margin: 8px auto;
}
.repeater-item input{
    width: 100%;
}
.job-form-row a{
    text-decoration: underline;
    cursor: pointer;
}
#save-job-request-form, .save-job-form{
    width: 300px;
    margin: 40px auto;
    text-align: center;
}

/*stats*/

.wp-statistics-dashboard h3{
    margin: 24px 0px;
}
.chart-container {
    display:flex;
    align-items:center;
    gap:40px;
    flex-wrap:wrap;
}
.canva-chart{
    width: 250px !important;
    height: 250px !important;
}

/*profile view*/
.profile-container{
    margin: 32px;
}
.profile-container :first-child {
    /*justify-content: space-between;*/
}
.profile-row{
    margin: 16px 0;
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.profile-row.english-row .profile-item{
    min-width: 22%;
}
.profile-item.avatar-container {
    position: absolute;
    left: -170px;
    top: 70px;
}
.profile-item.avatar-container img{
    width: 100%;
    height: 90px;
    border-radius: 50%;
}
/*.profile-row :first-child{*/
/*    font-weight: 700;*/
/*}*/
.profile-item{
    display: flex;
    flex-direction: row;
    min-width: 30%;
    gap: 16px;
    height: 100%;
}
.profile-item :first-child{
    font-weight: 700;
}
/* notes */
#note-container {
    margin: 16px 0;
}
#notes-container {
    overflow-y: scroll;
    max-height: 400px !important;
    border-bottom: 2px solid black;
    border-top: 2px solid black;
}
.note-item{
    margin: 32px 24px;
    padding: 16px;
    border: 1px dashed #E65409;
    border-radius: 16px;
}
.note-item p {
    white-space: pre-line;
    margin: 0;
}
#tab7 .note {
    width: 70%;
    border: 1px solid black;
    padding: 16px;
    border-radius: 16px;
    margin: 16px auto;
}