/* Main */
.main {
    position: relative;
}

.main__fixed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
    background: linear-gradient(45deg, #2e7d32, #4caf50, #66bb6a);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Main content */
.main__employer {
    margin-top: 30px;
    margin-bottom: 30px;
}

.main__employer--info {
    display: flex;
    background: linear-gradient(135deg, #ffffff 0%, #f1f8e9 100%);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.15);
    border: 2px solid #e8f5e8;
    transition: all 0.3s ease;
}

    .main__employer--info:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(76, 175, 80, 0.25);
    }

.employer__info--img {
    width: 110px;
    height: 110px;
    margin-right: 20px;
    border: 3px solid #4caf50;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.employer__info--img:hover {
    transform: scale(1.05);
    border-color: #2e7d32;
}

.employer__info--img > img {
    height: 100%;
    object-fit: fill;
}

.employer__info--recruitment > h1,
.employer__content--title {
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 0;
    line-height: 28px;
    margin-bottom: 10px;
    color: #2e7d32;
    text-shadow: 0 2px 4px rgba(46, 125, 50, 0.1);
}

.employer__info--link > a {
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
    color: #4caf50;
    transition: all 0.3s ease;
}

.employer__info--link:hover > a {
    color: #2e7d32;
    transform: translateY(-2px);
}

.employer__info--deadline {
    font-size: 16px;
    margin-top: 10px;
    color: #388e3c;
    font-weight: 500;
}

.employer__apply--cv > button,
.apply__button--cancel,
.apply__button--submit {
    border: none;
    font-size: 16px;
    min-width: 120px;
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.employer__apply--cv > button {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .employer__apply--cv > button:hover {
        background: linear-gradient(135deg, #388e3c, #4caf50);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    }


.employer__content--title {
    margin-top: 25px;
    font-size: 22px;
    color: #2e7d32;
    position: relative;
    padding-left: 20px;
}

.employer--title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: linear-gradient(to bottom, #4caf50, #66bb6a);
    border-radius: 2px;
}

.employer__content--info p {
    line-height: 28px;
}

.main__employer--content {
    margin-top: 20px;
    margin-bottom: 20px;
}

.employer__content--company {
    background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e8 100%);
    padding: 20px;
    min-height: 250px;
    border-radius: 15px;
    border: 2px solid #00b14f;
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.1);
}

    .employer__content--company > h2 {
        font-size: 20px;
        color: #2e7d32;
        margin-bottom: 20px;
        text-align: center;
        font-weight: 600;
    }

.content__company--list {
    line-height: 28px;
    list-style: none;
    font-size: 15px;
    padding-left: 0;
}

    .content__company--list li {
        margin: 15px 0;
        padding: 10px;
        background: rgba(255, 255, 255, 0.7);
        border-radius: 10px;
        border-left: 4px solid #4caf50;
        transition: all 0.3s ease;
    }

        .content__company--list li:hover {
            background: rgba(255, 255, 255, 0.9);
            transform: translateX(5px);
        }

        .content__company--list li > p {
            text-align: justify;
            margin: 5px 20px 10px;
            color: #2e7d32;
        }

    .content__company--list .fa-solid {
        min-width: 25px;
        font-size: 16px;
        color: #4caf50;
        margin-right: 10px;
    }

.content__info--title {
    font-size: 22px;
    color: #2e7d32;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(46, 125, 50, 0.1);
}

.content__info--list {
    line-height: 30px;
    list-style: none;
    padding-left: 0;
}

    .content__info--list li {
        padding: 8px 0;
        transition: all 0.3s ease;
    }

        .content__info--list li:hover {
            transform: translateX(5px);
        }

        .content__info--list li::before {
            font-family: FontAwesome;
            margin-right: 12px;
            content: "\f058";
            color: #4caf50;
            font-size: 16px;
        }

        .content__info--list li > p {
            margin: 0;
            margin-left: 25px;
            color: #2e7d32;
            font-weight: 500;
        }

/* Main Apply */
.main__apply {
    position: absolute;
    top: -70px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.3);
    display: none;
}

.main__apply--post {
    position: fixed;
    z-index: 11;
    left: 50%;
    transform: translateX(-50%);
    top: 50px;
    background: linear-gradient(135deg, #ffffff 0%, #f1f8e9 100%);
    width: 800px;
    border-radius: 20px;
    padding: 25px 30px;
    font-size: 15px;
    transition: all .5s ease;
    box-shadow: 0 20px 40px rgba(76, 175, 80, 0.3);
    border: 2px solid #00b14f;
    display: none;
}

.main__apply.show,
.main__apply.show .main__apply--post {
    display: block;
}

    .main__apply.show .main__apply--post {
        animation: showForm .5s linear;
    }

.main__apply--title {
    font-size: 24px;
    line-height: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #2e7d32;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #00b14f;
}

.apply--close::after {
    content: '×';
    cursor: pointer;
    padding: 8px 12px;
    color: #81c784;
    font-size: 24px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.apply--close:hover::after {
    color: #2e7d32;
    background-color: #e8f5e8;
    transform: rotate(90deg);
}

.main__apply--content input[type=radio] {
    margin: 0;
    margin-right: 10px;
}

.main__apply--upload {
    margin-top: 20px;
}

#cv_upload,
.apply__online--content,
.apply__content--uploadcv {
    display: none;
}

#cv_type-online:checked ~ .apply__online--content,
#cv_type-upload:checked ~ .apply__content--uploadcv {
    display: block;
}

#cv_type-online + label::before,
#cv_type-upload + label::before {
    content: '\f058';
    margin-right: 10px;
    color: #00b14f;
    font-family: FontAwesome;
    font-size: 18px;
    transition: all 0.3s ease;
}

#cv_type-online:checked + label::before,
#cv_type-upload:checked + label::before {
    content: '\f058';
    color: #4caf50;
    transform: scale(1.2);
}

#cv_type-online + label,
#cv_type-upload + label {
    color: #2e7d32;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

    #cv_type-online + label:hover,
    #cv_type-upload + label:hover {
        color: #4caf50;
    }

.apply__content--cv {
    font-weight: 500;
    line-height: 30px;
    padding-left: 10px;
}

.main__apply--note textarea {
    width: 100%;
    font-size: 15px;
    padding: 10px 15px;
    outline: none;
}

    .main__apply--note textarea::placeholder {
        color: rgba(0, 0, 0, 0.4);
        font-size: 13px;
        font-style: italic;
    }

#cv_upload + .lb_upload {
    padding: 10px 20px;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-block;
}

    #cv_upload + .lb_upload:hover {
        background: linear-gradient(135deg, #388e3c, #4caf50);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
    }

.main__apply--button {
    margin-top: 20px;
    text-align: right;
    padding-top: 15px;
    border-top: 1px solid #00b14f;
}

.apply__button--cancel,
.apply__button--submit {
    border-radius: 25px;
    margin-left: 10px;
    padding: 12px 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.apply__button--cancel {
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    color: #666;
}

    .apply__button--cancel:hover {
        background: linear-gradient(135deg, #d5d5d5, #e0e0e0);
    }

.apply__button--submit {
    color: white;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
}

    .apply__button--submit:hover {
        background: linear-gradient(135deg, #388e3c, #4caf50);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
    }

/* Table Styling */
.job-detailed-info {
    background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.15);
    border: 2px solid #e8f5e8;
    padding: 25px;
}

.table {
    margin-bottom: 0;
    border-radius: 15px;
    overflow: hidden;
}

    .table th {
        background: linear-gradient(135deg, #4caf50, #66bb6a);
        color: white;
        font-weight: 600;
        text-align: center;
        padding: 15px;
        border: none;
    }

    .table td {
        padding: 12px 15px;
        border-color: #e8f5e8;
        color: #2e7d32;
        font-weight: 500;
    }

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f1f8e9;
}

.table-striped > tbody > tr:nth-of-type(even) {
    background-color: #ffffff;
}

/* Share and Export Buttons */
.btn {
    padding: 8px 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.5px;
}

.btn:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-success {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    border-color: #4caf50;
}

    .btn-success:hover {
        background: linear-gradient(135deg, #388e3c, #4caf50);
        border-color: #388e3c;
    }

/* Form Controls */
.form-control {
    border: 2px solid #00b14f;
    border-radius: 10px;
    padding: 10px 15px;
    transition: all 0.3s ease;
    background-color: #fafffe;
}

    .form-control:focus {
        border-color: #4caf50;
        box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
        background-color: white;
    }

.custom-select {
    border: 2px solid #00b14f;
    border-radius: 10px;
    padding: 10px 15px;
    transition: all 0.3s ease;
    background-color: #fafffe;
}

    .custom-select:focus {
        border-color: #4caf50;
        box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
    }

/* Image Enhancements */
.img-donhang {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.2);
    transition: all 0.3s ease;
}

    .img-donhang:hover {
        transform: scale(1.05);
    }

/* Animations */
@keyframes showForm {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main__employer--info,
.container-table,
.employer__content--company {
    animation: fadeInUp 0.8s ease;
}

/* Label Required */
.label-required {
    position: relative;
    color: #2e7d32;
    font-weight: 600;
}

    .label-required::after {
        content: "*";
        color: #f44336;
        margin-left: 5px;
        font-weight: bold;
    }

/* Textarea */
textarea {
    border: 2px solid #00b14f;
    border-radius: 10px;
    resize: vertical;
    transition: all 0.3s ease;
    background-color: #fafffe;
}

    textarea:focus {
        border-color: #4caf50;
        box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
        background-color: white;
    }

/* Card like styling for content sections */
.main__employer--content > div {
    background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.1);
    border: 1px solid #e8f5e8;
}

/* Main Content Background - Xóa background để về như cũ */
.main-content-area {
    background: none;
    min-height: 80vh;
    padding: 30px 0;
}

.content-container {
    background: none;
    border-radius: 0;
    padding: 25px;
    box-shadow: none;
    backdrop-filter: none;
    margin: 0 auto;
    max-width: 1200px;
}

.table-responsive {
    overflow-x: hidden;
}

h4 {
    font-size: 16px;
}

.fa {
    margin-right: 5px;
}

/* New 2-column layout styles */
.job-detail-container {
    margin-top: 20px;
}

.job-basic-info {
    flex: 0 0 350px;
    background: linear-gradient(135deg, #2e7d32, #9bf59b);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.2);
}

.info-card {
    background: rgba(255, 255, 255, 0.9);
    margin: 15px;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #ff9800;
}

    .info-card:first-child {
        margin-top: 15px;
    }

    .info-card h5 {
        color: #e65100;
        font-weight: 600;
        margin-bottom: 8px;
        font-size: 14px;
    }

    .info-card .value {
        color: #424242;
        font-weight: 500;
        font-size: 16px;
    }

.company-header {
    background: linear-gradient(135deg, #2e7d32, #9bf59b);
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 20px 20px 0 0;
}

.company-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    margin: 0 auto 15px;
    display: block;
    object-fit: cover;
}

.company-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.candidate-info-header {
    background: linear-gradient(135deg, #2196f3, #42a5f5);
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 20px 20px 0 0;
    margin: -25px -25px 20px -25px;
}

.candidate-info-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.apply-button-container {
    text-align: center;
    margin-top: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

    .detail-row:last-child {
        border-bottom: none;
    }

.detail-label {
    color: #1565c0;
    font-weight: 600;
    font-size: 14px;
}

.detail-value {
    color: #424242;
    font-weight: 500;
    text-align: right;
    flex: 1;
    margin-left: 15px;
}