/* Job Application Modal Styles */
.modal-dialog.modal-xl {
    max-width: 90%;
    margin: 1.75rem auto;
}

.modal-content {
    height: 90vh;
    border-radius: 8px;
    overflow: hidden;
}

.modal-body {
    padding: 0 !important;
    height: calc(100% - 120px); /* Adjust for header and footer */
    position: relative;
    background: #f8f9fa;
}

.embed-responsive {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    border: none;
}

.embed-responsive-item {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}

/* Error Message Styles */
.modal-body .text-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 500px;
    padding: 2rem;
}

.modal-body .text-center .fas {
    color: #ffc107;
    margin-bottom: 1rem;
}

.modal-body .text-center h4 {
    color: #333;
    margin-bottom: 1rem;
}

.modal-body .text-center p {
    color: #666;
    margin-bottom: 1.5rem;
}

.modal-body .btn-primary {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-body .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(94, 91, 237, 0.2);
}

/* Mobile Styles */
@media (max-width: 767.98px) {
    .modal-dialog.modal-fullscreen {
        margin: 0;
        max-width: 100%;
        width: 100%;
        height: 100%;
    }

    .modal-fullscreen .modal-content {
        height: 100vh;
        border-radius: 0;
    }

    .modal-fullscreen .modal-body {
        height: calc(100% - 110px);
    }

    .modal-fullscreen .embed-responsive {
        position: relative;
        height: 100% !important;
    }
    
    .modal-body .text-center {
        padding: 1rem;
    }
}

/* Modal Header Styles */
.modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem;
}

.modal-title {
    font-weight: 600;
    color: #333;
}

/* Modal Footer Styles */
.modal-footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 1rem;
}

/* Button Styles */
.modal-footer .btn {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.modal-footer .btn-primary {
    background-color: #5e5bed;
    border-color: #5e5bed;
}

.modal-footer .btn-primary:hover {
    background-color: #4b48d6;
    border-color: #4b48d6;
}

/* Loading State */
.embed-responsive-item.loading {
    background: #f8f9fa url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIHZpZXdCb3g9IjAgMCA1MCA1MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxjaXJjbGUgY3g9IjI1IiBjeT0iMjUiIHI9IjIwIiBmaWxsPSJub25lIiBzdHJva2U9IiM1ZTViZWQiIHN0cm9rZS13aWR0aD0iNSI+CiAgICAgICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJyb3RhdGUiIGZyb209IjAgMjUgMjUiIHRvPSIzNjAgMjUgMjUiIGR1cj0iMXMiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIi8+CiAgICA8L2NpcmNsZT4KPC9zdmc+') center center no-repeat;
}

/* Job Preview Modal Styles */
.job-preview-container {
    font-family: 'Poppins', sans-serif;
    color: #333;
}

.job-preview-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.job-title {
    color: #2d3436;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.company-info, .location-info {
    color: #636e72;
    font-size: 1rem;
}

.meta-item {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    height: 100%;
    display: flex;
    align-items: center;
}

.meta-item i {
    font-size: 1.1rem;
    width: 24px;
}

.job-description-section {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.section-title {
    color: #2d3436;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.description-text {
    color: #636e72;
    line-height: 1.6;
    font-size: 0.95rem;
    max-height: 300px;
    overflow-y: auto;
}

.contact-info-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    color: #636e72;
}

.job-preview-footer {
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.job-modal .btn-primary {
    background-color: #5e5bed;
    border-color: #5e5bed;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.job-modal .btn-primary:hover {
    background-color: #4b48bf;
    border-color: #4b48bf;
    transform: translateY(-1px);
}

/* Modal size adjustments */
.modal-xl {
    max-width: 1140px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .job-preview-container {
        padding: 1rem !important;
    }

    .meta-item {
        margin-bottom: 0.5rem;
    }

    .job-title {
        font-size: 1.25rem;
    }

    .description-text {
        max-height: 250px;
    }
}

/* Additional Media Queries */
@media(max-width: 991px) {
    .body-box {
        padding: 40px 30px 80px 30px;
    }

    .hed-rht ul li {
        margin-left: 20px;
    }
}

@media(max-width:1024px) {
    ::-webkit-scrollbar {
        width: 15px !important;
    }
}

@media(max-width:767px) {
    #layoutBody {
        margin-left: 0% !important;
        margin-right: 0% !important;
    }

    .body-box h1 {
        font-size: 34px;
        margin-bottom: 35px;
        line-height: 55px;
    }

    .help-part {
        width: 100%;
    }

    .body-box {
        padding: 40px 30px 80px 30px;
    }

    .hed-rht {
        position: relative;
        width: 100%;
        text-align: center;
        margin-top: 18px;
    }

    #google_translate_element {
        display: none;
    }

    .hed-rht ul {
        width: 100%;
        float: none;
    }

    .hed-rht ul li {
        margin-left: 20px;
        float: none;
        display: inline-block;
    }

    .sidenav a {
        padding: 10px 8px 10px 32px;
        font-size: 17px;
    }

    .body-part {
        padding: 0px 0 30px 0;
    }

    header {
        padding: 0 !important;
    }

    .MobileHeaderHide {
        display: none;
    }
}

@media(max-width:420px) {
    .body-box {
        padding: 40px 20px 50px 20px;
    }
}

@media(max-width:375px) {
    .body-box {
        padding: 30px 20px 30px 20px;
    }

    .sidenav a {
        font-size: 16px;
    }
}

@media(max-width:320px) {
    /* Empty media query preserved for future mobile device support */
}

.job-modal .modal-dialog {
    max-width: 800px;
}

.job-modal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.job-modal .modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    border-radius: 12px 12px 0 0;
    padding: 1.5rem;
}

.job-modal .modal-title {
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.job-modal .modal-body {
    padding: 2rem;
}

.company-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.company-logo {
    width: 80px;
    height: 80px;
    margin-right: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.company-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.company-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: #2c3e50;
}

.job-meta-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.meta-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.meta-item i {
    width: 24px;
    margin-right: 8px;
    color: #5e5bed;
}

.meta-item:last-child {
    margin-bottom: 0;
}

.job-description-section {
    margin-bottom: 2rem;
}

.section-title {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #5e5bed;
    display: inline-block;
}

.description-content {
    color: #4a5568;
    line-height: 1.6;
}

.description-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.description-content ul li {
    margin-bottom: 0.5rem;
    position: relative;
}

.description-content p {
    margin-bottom: 1rem;
}

.description-content b, 
.description-content strong {
    color: #2c3e50;
}

.salary-range {
    background: #e9ecef;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    color: #2c3e50;
}

.contact-info-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.contact-item i {
    width: 24px;
    margin-right: 8px;
    color: #5e5bed;
}

.application-cta {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.application-cta .btn-apply {
    background: #5e5bed;
    color: white;
    padding: 12px 32px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.application-cta .btn-apply:hover {
    background: #4b48be;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(94,91,237,0.2);
}

.requirements-section,
.benefits-section {
    margin-bottom: 2rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1rem 0;
}

.tag {
    background: #e9ecef;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.9rem;
    color: #495057;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding: 1.5rem;
}

.btn-outline-primary {
    color: #5e5bed;
    border-color: #5e5bed;
}

.btn-outline-primary:hover {
    background-color: #5e5bed;
    color: white;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .job-modal .modal-dialog {
        margin: 0.5rem;
    }

    .company-header {
        flex-direction: column;
        text-align: center;
    }

    .company-logo {
        margin: 0 auto 1rem auto;
    }

    .meta-item {
        flex-direction: column;
        text-align: center;
    }

    .meta-item i {
        margin-bottom: 0.5rem;
    }
} 