.job-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.6);
}


/* Modal content box */

.job-modal-content {
    background: #fff;
    padding: 25px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    /* Ensures it fits screen */
    overflow-y: auto;
    /* Enables scroll if needed */
    border-radius: 10px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    transform: scale(0.98);
    animation: modalFadeIn 0.4s forwards;
}

@keyframes modalFadeIn {
    to {
        transform: scale(1);
    }
}


/* Close button */

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #555;
}


/* Description section scrollable box */

#modalDescription {
    max-height: 200px;
    /* Scroll only this part if very long */
    overflow-y: auto;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-top: 12px;
    border: 1px solid #e5e5e5;
    line-height: 1.6;
    font-size: 14px;
    color: #444;
}

.modal-description h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}


/* Default button style */

.btn-3d {
    background: #007bff;
    /* Default color */
    color: #fff;
    border: none;
    padding: 19px 29px;
    border-radius: 26px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px #0056b3;
    /* 3D effect */
}


/* Hover state */

.btn-3d:hover {
    background: #0056b3;
    /* Darker blue on hover */
}


/* Active (clicked) state */

.btn-3d:active {
    background: #004085;
    /* Even darker when clicked */
    transform: translateY(2px);
    /* Pressed effect */
    box-shadow: 0 2px #003366;
}

.no-jobs-found {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
    font-size: 18px;
    color: #6c757d;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.no-results {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
    font-size: 18px;
    color: #6c757d;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.job-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Modal Box */

.job-modal-content {
    background: #fff;
    width: 600px;
    max-width: 95%;
    border-radius: 12px;
    padding: 20px 30px;
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: fadeInUp 0.3s ease;
}


/* Close Button */

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}


/* Title */

.modal-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
}


/* Details Section */

.modal-details p {
    margin: 12px 0;
    font-size: 15px;
    color: #444;
    display: flex;
    align-items: flex-start;
}

.modal-details p strong {
    min-width: 100px;
    display: inline-block;
    color: #333;
}

.modal-skill-tag {
    display: inline;
    color: #555;
    font-size: 14px;
}


/* Description */

.modal-description {
    margin-top: 15px;
    font-size: 15px;
    color: #555;
}


/* Footer */

.modal-footer {
    margin-top: 25px;
    text-align: right;
    padding-top: 15px;
    border-top: 1px solid #eee;
}


/* Apply Button */

.apply-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.apply-btn:hover {
    background: linear-gradient(135deg, #0069d9, #004494);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
}

.apply-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
}


/* Animation */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Job List Specific Styles */
/* Add any job list specific styles here */

.no-jobs-found {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
    color: #6c757d;
    font-size: 18px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.job-card-3d .share-btn-3d {
    background: #F3F4F6;
    color: #111827;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.share-menu-3d {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
    padding: 8px;
    z-index: 2000;
}
.share-menu-3d.drop-up {
    top: auto;
    bottom: calc(100% + 8px);
}

.share-opt-3d {
    background: #ffffff;
    color: #111827;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    min-height: 36px;
    min-width: 88px;
    cursor: pointer;
}

.share-opt-3d:hover {
    background: #F9FAFB;
}

.share-wrapper-3d {
    position: relative;
}

.job-footer-3d {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.job-actions-3d {
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-date-3d {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6B7280;
    font-size: 12px;
}

.share-row-3d {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.job-card-3d {
    position: relative;
}
.job-card-3d.menu-open {
    z-index: 5000;
}

#jobsGridContainer {
    overflow: visible;
}
.job-modal .job-modal-content {
    overflow: visible;
}
.job-modal .modal-footer {
    gap: 16px;
    align-items: center;
}

.job-modal .apply-btn {
    white-space: nowrap;
    text-decoration: none;
}

.job-modal .modal-footer .apply-btn,
.job-modal .modal-footer .share-btn-3d {
    box-sizing: border-box;
    width: var(--action-btn-width, auto);
    height: var(--action-btn-height, auto);
}
.job-modal .share-icon-3d {
    background: #F9FAFB;
    color: #111827;
    border: 1px solid #E5E7EB;
    width: max(var(--action-btn-height, 50px), 50px);
    height: max(var(--action-btn-height, 50px), 50px);
    border-radius: 999px;
    box-shadow: 0 6px 12px rgba(17, 24, 39, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease, border-color 120ms ease;
}
.job-modal .share-icon-3d:hover {
    background: #F3F4F6;
    border-color: #D1D5DB;
    transform: translateY(-1px);
    box-shadow: 0 10px 16px rgba(17, 24, 39, 0.12);
}