.job-item {
    /* margin-bottom: 20px; */
    padding: 15px;
    /* border-bottom: 1px solid #e0e0e0; */
}

.icon-arrow {
    width: 25px;
    height: 25px;
    vertical-align: middle;
}

.job-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    /* border: 1px solid #ccc; */
    border-radius: 5px;
    background-color: #f9f9f9;
    font-family: Arial, sans-serif;
    /* max-width: 400px; */
    margin: 10px auto;
}

.job-row p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.job-row .salary {
    font-weight: bold;
    color: #007bff;
}

.job-details {
    flex: 3;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.mt-20 {
    margin-top: 10px;
}

.f-14 {
    font-size: 14px;
}

.button-size {
    height: 45px;
    width: 100%;
}

.span {
    display: inline-block;
    margin-right: 10px;
    margin-top: 5px;
    padding: 5px 10px;
    background: #f2f2f3;
    color: #8d8592;
    border-radius: 4px;
    font-size: 0.85rem;
}

.job-item p {
    margin: 0;
    color: #666;
}

.job-header {
    border-right: 1px solid #6f6b7d;
    margin-right: 5px;
}

.related-job-item {
    font-size: 14px;
}

.related-job-item h4 {
    font-size: 18px !important;
}

.related-job-item span {
    font-size: 12px !important;
}

.job-item span {
    display: inline-block;
    margin-right: 5px;
    padding: 5px 10px;
    background: #f2f2f3;
    color: #8d8592;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-top: 5px;
}

.mt-10 {
    margin-top: 10px;
}

.ml-45 {
    margin-left: 27px;
}

.ml-29 {
    margin-left: 29px;
}

.font18 {
    font-size: 18px;
}

.font16 {
    font-size: 16px;
}

.font14 {
    font-size: 14px;
}

.font12 {
    font-size: 12px;
}

.mbt-2 {
    margin-bottom: -17px !important;
}

.avatar {
    position: relative;
    width: 2.375rem !important;
    height: 2.375rem;
    cursor: pointer;
}

.t-tag {
    font-size: 16px;
    font-weight: 700;
}

.btn-outline-dribbble {
    background: transparent;
    border-color: #65a6d7;
    color: #65a6d7;
}

.btn-outline-dribbble:hover {
    color: #007bff !important;
    border-color: #007bff !important;
}

.border-data {
    color: #dbdade;
    border: 0;
    border-top: var(--bs-border-width) solid;
    opacity: 1;
}

#active-filters .salary-filter-pill {
    background-color: white !important;
    color: #65a6d7 !important;
}

.text-none {
    text-transform: none !important;
}

/* job detial blur*/
.blurred {
    filter: blur(5px);
    pointer-events: none;
}

.responsive-btn {
    margin-left: auto;
    width: auto;
}

@media (max-width: 767.98px) {
    .responsive-btn {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

.expired-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    border-radius: 0.375rem;
}

.expired-text {
    color: #dc3545;
    font-weight: bold;
    font-size: 0.75rem;
}

.blur-content {
    filter: blur(1px);
}

.tag-inline-spacing * {
    margin: 0.5rem 0.375rem 0 0 !important;
}

.share-job-whatsapp {
    background-color: #25d366;
    border: #25d366;
}

/* ========================================
   MATCH SCORE STYLES - DESKTOP
   ======================================== */
@media screen and (min-width: 768px) {

    /* Base Matched Score Container */
    .matched-score-details {
        min-width: 100px;
        position: absolute;
        top: 75px;
        left: 620px;
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: all 0.3s ease;
    }

    #expensesChart {
        margin-bottom: 5px;
    }

    /* Match Tag (Label Below Chart) */
    .matched-score-details .match-tag {
        background-color: #fcfcff;
        width: 105px;
        border-radius: 5px;
        border: 1px solid #ccc;
        padding: 2px 5px;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.3s ease;
    }

    .match-label {
        font-size: 13px;
        margin: 0;
        color: #000;
        font-weight: 500;
    }

    /* ========================================
       TOOLTIP - GUEST USER (Not Logged In)
       ======================================== */
    .tooltip-container .tooltip-text {
        visibility: hidden;
        width: max-content;
        max-width: 220px;
        background-color: #333;
        color: #fff;
        text-align: left;
        padding: 8px 10px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 500;
        line-height: 1.4;
        position: absolute;
        z-index: 1000;
        bottom: 115%;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
        white-space: normal;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .tooltip-container .tooltip-text::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border-width: 6px;
        border-style: solid;
        border-color: #333 transparent transparent transparent;
    }

    .tooltip-container:hover .tooltip-text {
        visibility: visible;
        opacity: 1;
    }

    /* ========================================
       TOOLTIP - AUTHENTICATED USER (Left Side)
       ======================================== */
    .tooltip-left .tooltip-text {
        visibility: hidden;
        width: max-content;
        max-width: 240px;
        background-color: #333;
        color: #fff;
        text-align: left;
        padding: 8px 10px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 500;
        line-height: 1.4;
        position: absolute;
        z-index: 1000;
        top: 50%;
        right: 115%;
        transform: translateY(-50%);
        opacity: 0;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
        white-space: normal;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .tooltip-left .tooltip-text::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 100%;
        transform: translateY(-50%);
        border-width: 6px;
        border-style: solid;
        border-color: transparent transparent transparent #333;
    }

    .tooltip-left:hover .tooltip-text {
        visibility: visible;
        opacity: 1;
    }

    /* ========================================
       PLACEHOLDER STATE (Below Minimum Score)
       ======================================== */

    .matched-score-details.score-placeholder .match-tag {
        background-color: #f5f5f5;
        border-color: #ddd;
    }

    /* Gray out the radial bar chart */
    .matched-score-details.score-placeholder #expensesChart .apexcharts-radialbar-series path {
        stroke: #cccccc !important;
    }

    /* Darker tooltip for placeholder state */
    .matched-score-details.score-placeholder .tooltip-text {
        background-color: #444;
        max-width: 260px;
    }

    .matched-score-details.score-placeholder .tooltip-text::after {
        border-color: transparent transparent transparent #444;
    }

    /* Tooltip text styling for better readability */
    .tooltip-text strong {
        display: block;
        margin-bottom: 4px;
        color: #fff;
        font-weight: 600;
    }
}

/* ========================================
   MATCH SCORE STYLES - MOBILE
   ======================================== */
@media screen and (max-width: 767px) {
    .matched-score-details {
        position: absolute;
        top: 5px;
        left: 250px;
        display: flex;
        flex-direction: column;
        margin-top: 15px;
        width: 30%;
        gap: 4px;
    }

    .matched-score-details .match-tag {
        background-color: #fcfcff;
        width: 105px;
        border-radius: 5px;
        border: 1px solid #ccc;
        padding: 2px 5px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .match-label {
        font-size: 13px;
        margin: 0;
        width: 150px;
        color: #000;
        font-weight: 500;
    }

    /* ========================================
       ENABLE LEFT-SIDE TOOLTIPS ON MOBILE
       ======================================== */
    .tooltip-left .tooltip-text {
        visibility: hidden;
        width: max-content;
        max-width: 200px;
        background-color: #333;
        color: #fff;
        text-align: left;
        padding: 8px 10px;
        border-radius: 6px;
        font-size: 11px;
        font-weight: 500;
        line-height: 1.4;
        position: absolute;
        z-index: 1000;
        top: 50%;
        right: 115%;
        transform: translateY(-50%);
        opacity: 0;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
        white-space: normal;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .tooltip-left .tooltip-text::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 100%;
        transform: translateY(-50%);
        border-width: 6px;
        border-style: solid;
        border-color: transparent transparent transparent #333;
    }

    /* Show tooltip on tap/touch */
    .tooltip-left:active .tooltip-text {
        visibility: visible;
        opacity: 1;
    }

    /* Guest user tooltip - also left side */
    .tooltip-container .tooltip-text {
        visibility: hidden;
        width: max-content;
        max-width: 200px;
        background-color: #333;
        color: #fff;
        text-align: left;
        padding: 8px 10px;
        border-radius: 6px;
        font-size: 11px;
        font-weight: 500;
        line-height: 1.4;
        position: absolute;
        z-index: 1000;
        top: 50%;
        right: 115%;
        transform: translateY(-50%);
        opacity: 0;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
        white-space: normal;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .tooltip-container .tooltip-text::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 100%;
        transform: translateY(-50%);
        border-width: 6px;
        border-style: solid;
        border-color: transparent transparent transparent #333;
    }

    .tooltip-container:active .tooltip-text {
        visibility: visible;
        opacity: 1;
    }

    /* Placeholder state adjustments */
    .matched-score-details.score-placeholder .match-tag {
        background-color: #f5f5f5;
        border-color: #ddd;
    }

    .matched-score-details.score-placeholder .match-label {
        color: #999;
    }

    .matched-score-details.score-placeholder .tooltip-text {
        background-color: #444;
    }

    .matched-score-details.score-placeholder .tooltip-text::after {
        border-color: transparent transparent transparent #444;
    }
}

/* ========================================
   ADDITIONAL UTILITY STYLES
   ======================================== */

/* Ensure chart renders properly */
.apexcharts-canvas {
    margin: 0 auto;
}

/* Prevent text selection on chart */
.matched-score-details * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

/* Smooth transitions for hover effects */
.matched-score-details:hover {
    transform: translateY(-2px);
}

.matched-score-details:hover .match-tag {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}