/* Global styling */
body {
    background-color: #f8f8f8;
    margin: 0;
    padding: 0;
    /* font-family: Arial, sans-serif; */
}

/* Header container */
.header-container {
    margin: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}


.ads-container {
    padding: 20px;
    margin: 0 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.ads-title {
    text-align: center;
    font-size: 2em;
    margin: 20px 0;
    padding: 0 10px;
}

.search-container {
    text-align: center;
    margin-bottom: 20px;
}

.search-input-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.search-input {
    width: 60%;
    max-width: 500px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1.1em;
}

.search-button {
    padding: 12px 24px;
    margin-left: 10px;
    border: none;
    background-color: #007BFF;
    color: #fff;
    font-size: 1.1em;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-button:hover {
    background-color: #0056b3;
}

/* Filter buttons row */
.filter-buttons-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.filter-button {
    padding: 12px 20px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-weight: 500;
    color: #444;
}

.filter-button:hover {
    background-color: #f8f9ff;
    border-color: #c0c8e0;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.filter-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.filter-button .filter-arrow {
    font-size: 0.7em;
    color: #2a4db0;
    transition: transform 0.2s ease;
}

.filter-button:hover .filter-arrow {
    transform: translateY(2px);
}

.ads-count-container {
    text-align: left;
    margin: 0 20px 20px;
}

.ads-count-text {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

/* Filter panel styling - Three-column layout */
.filter-panel-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    overflow: auto;
    backdrop-filter: blur(3px);
}

.filter-panel-container {
    background-color: white;
    width: 90%;
    max-width: 1200px; /* Increased for three columns */
    max-height: 90vh;
    overflow: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    height: 90vh;
    border-radius: 10px;
}

/* Expand_ads.html */
.job-detail-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

.job-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.job-logo {
    width: 120px;
    height: auto;
    margin-right: 20px;
}

.job-title {
    font-size: 2em;
    font-weight: bold;
    margin: 0;
}

.job-meta {
    font-size: 0.9em;
    color: #777;
    margin-top: 5px;
}

.job-section {
    margin-bottom: 30px;
}

.job-info {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.6;
}

.job-description {
    color: #555;
    line-height: 1.6;
}

/* Desktop filter layout */
@media (min-width: 769px) {
    .filters-layout {
        flex: 1;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        grid-auto-rows: minmax(300px, auto);
        gap: 20px;
        padding: 20px;
        overflow-y: auto;
    }

    .filter-section {
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 15px;
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 300px;
        box-sizing: border-box;
    }

    .filter-options {
        flex: 1;
        overflow-y: auto;
        margin-top: 10px;
        padding-right: 5px;
    }

    .filter-panel-footer {
        padding: 15px 20px;
        border-top: 1px solid #e0e0e0;
        background: #f8f9fc;
        text-align: right;
    }
}

.apply-filters-btn {
    padding: 12px 30px;
    background-color: #2a4db0;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.apply-filters-btn:hover {
    background-color: #1e3a87;
}

/* Filter panel navigation */
.filter-panel-nav {
    padding: 18px 25px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fc;
    position: relative;
}

.filter-back-btn {
    background: none;
    border: none;
    font-size: 0.95em;
    color: #2a4db0;
    cursor: pointer;
    padding: 8px 15px 8px 0;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-back-btn::before {
    content: '←';
    display: inline-block;
    font-weight: bold;
    font-size: 1.1em;
    line-height: 1;
    transition: transform 0.2s ease;
}

.filter-back-btn:hover {
    color: #1e3a87;
}

.filter-back-btn:hover::before {
    transform: translateX(-3px);
}

/* Filter columns */
.filter-columns {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.filter-column {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    border-right: 1px solid #eee;
    position: relative;
}

.filter-column:last-child {
    border-right: none;
}

/* Countries column - First column */
.filter-column.countries-column {
    flex: 0 0 280px;
    background-color: #f5f7fa;
    box-shadow: 2px 0 8px rgba(0,0,0,0.05);
    z-index: 3;
}

/* Regions column - Second column */
.filter-column.regions-column {
    flex: 0 0 300px;
    background-color: #f9f9f9;
    box-shadow: 2px 0 8px rgba(0,0,0,0.05);
    z-index: 2;
}

/* Municipalities column - Third column */
.filter-column.municipalities-column {
    flex: 1;
    background-color: white;
    z-index: 1;
}

/* Add custom scrollbars to filter columns */
.filter-column {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f5f5f5;
}

/* Column headers */
.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fc;
    position: sticky;
    top: 0;
    z-index: 5;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.column-header h3 {
    margin: 0;
    font-size: 1.15em;
    font-weight: 600;
    color: #2a2f45;
    position: relative;
    padding-bottom: 2px;
}

.column-header h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #2a4db0;
    border-radius: 3px;
}

.reset-link {
    color: #e91e63;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.2s;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: #fff0f3;
}

.reset-link:hover {
    color: #c2185b;
    background-color: #ffe0e7;
}

/* Countries column */
.countries-list {
    padding: 0;
}

.country-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.country-item:hover {
    background-color: #f0f4ff;
}

.country-item.active {
    background-color: #e7efff;
    color: #2a4db0;
    border-left: 3px solid #2a4db0;
    font-weight: 500;
    position: relative;
}

.country-item.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid white;
}

/* Regions column */
.regions-list {
    padding: 0;
}

.region-group {
    display: none; /* Hidden by default, shown when country is selected */
}

.region-group.active {
    display: block;
}

.region-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.region-item:hover {
    background-color: #f0f4ff;
}

.region-item.active {
    background-color: #e7efff;
    color: #2a4db0;
    border-left: 3px solid #2a4db0;
    font-weight: 500;
    position: relative;
}

.region-item.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid white;
}

.chevron {
    font-size: 1.2em;
    color: #999;
    transition: all 0.2s ease;
    display: inline-block;
}

.region-item:hover .chevron,
.country-item:hover .chevron {
    transform: translateX(3px);
    color: #2a4db0;
}

.region-item.active .chevron,
.country-item.active .chevron {
    color: #2a4db0;
    transform: rotate(90deg);
}

/* Special styling for expanded regions showing municipalities */
.region-item.showing-municipalities .chevron {
    color: #2a4db0;
    transform: rotate(90deg);
}

/* For region labels that are showing municipalities */
.municipality-option.showing-municipalities .chevron {
    color: #2a4db0;
    transform: rotate(90deg);
}

/* Position chevron on the right side for regions */
.regions-column .municipality-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.regions-column .municipality-option .chevron {
    margin-left: auto;
    flex-shrink: 0;
    pointer-events: none; /* Prevent chevron from blocking clicks */
}

/* Make checkbox area more defined */
.regions-column .municipality-option input[type="checkbox"] {
    cursor: pointer;
    pointer-events: auto; /* Ensure checkbox is clickable */
    z-index: 1;
    position: relative;
}

/* Add hover effect for the text/chevron area */
.regions-column .municipality-option:hover {
    background-color: #f8f9fc;
}

/* Prevent text selection when clicking to expand */
.regions-column .municipality-option {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Municipalities column */
.municipalities-container {
    padding: 0;
}

.municipality-group {
    padding: 25px;
}

.region-title {
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    color: #2a2f45;
    font-size: 1.15em;
    position: relative;
}

.select-all-option {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 500;
    padding: 10px 12px;
    cursor: pointer;
    background-color: #f8f9fc;
    border-radius: 6px;
    border: 1px solid #eaedf5;
    transition: all 0.2s ease;
    gap: 10px;
}

.select-all-option:hover {
    background-color: #eef1fb;
    border-color: #d5dcf5;
}

.select-all-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    background-color: #fff;
    margin: 0;
    flex-shrink: 0;
}

.select-all-option input[type="checkbox"]:hover {
    border-color: #2a4db0;
}

.select-all-option input[type="checkbox"]:focus {
    box-shadow: 0 0 0 2px rgba(42, 77, 176, 0.3);
}

.select-all-option input[type="checkbox"]:checked {
    background-color: #2a4db0;
    border-color: #2a4db0;
}

.select-all-option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.municipality-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 15px;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f5f5f5;
}

.municipality-option {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
    gap: 10px;
}

.municipality-option:hover {
    background-color: #f8f9fc;
    border-color: #eaedf5;
}

.municipality-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    background-color: #fff;
    margin: 0;
    flex-shrink: 0;
}

.municipality-option input[type="checkbox"]:hover {
    border-color: #2a4db0;
}

.municipality-option input[type="checkbox"]:focus {
    box-shadow: 0 0 0 2px rgba(42, 77, 176, 0.3);
}

.municipality-option input[type="checkbox"]:checked {
    background-color: #2a4db0;
    border-color: #2a4db0;
}

.municipality-option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Checked state for municipality options */
.municipality-option input:checked + span {
    color: #2a4db0;
    font-weight: 500;
}

/* Filter panel footer */
.filter-panel-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
    background-color: white;
    margin-top: 0;
    z-index: 10;
}

.apply-filters-btn {
    background-color: #2a4db0;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    width: 350px;
    max-width: 100%;
    box-shadow: 0 4px 12px rgba(42, 77, 176, 0.2);
    transition: all 0.3s ease;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.apply-filters-btn:hover {
    background-color: #1e3a87;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(42, 77, 176, 0.3);
}

.apply-filters-btn:hover::before {
    left: 100%;
}

.apply-filters-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(42, 77, 176, 0.2);
}

/* Filters layout styling */
.filters-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 30px;
    flex: 1;
    overflow-y: auto;
    margin-bottom: 0;
    position: relative;
}

.filter-section {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 0;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.filter-section:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.filter-section-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-section-header h3 {
    font-size: 1.1em;
    font-weight: 600;
    color: #2a2f45;
    margin: 0;
    position: relative;
}

.filter-options {
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 5px;
    margin-top: 10px;
}

/* Custom checkbox styling */
.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.95rem;
    position: relative;
}

.filter-option:hover {
    background-color: #f0f0f0;
}

.filter-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
    background-color: #fff;
}

.filter-checkbox:hover {
    border-color: #2a4db0;
}

.filter-checkbox:focus {
    box-shadow: 0 0 0 2px rgba(42, 77, 176, 0.3);
}

.filter-checkbox:checked {
    background-color: #2a4db0;
    border-color: #2a4db0;
}

.filter-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    animation: checkmark 0.2s ease-in-out;
}

.filter-option span {
    transition: all 0.2s;
}

.filter-option:hover span {
    color: #2a4db0;
}

/* Enhance filter button active states for better UX */
.filter-button.active {
    background-color: #eef1fb;
    border-color: #2a4db0;
    color: #2a4db0;
    box-shadow: 0 2px 8px rgba(42, 77, 176, 0.15);
}

.filter-button.active .filter-arrow {
    transform: rotate(180deg);
}

/* Count badges for filters */
.filter-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #2a4db0;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75em;
    margin-left: 5px;
    font-weight: bold;
}

/* Filter selections summary */
.filter-selections-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px 25px;
    background-color: #f8f9fc;
    border-bottom: 1px solid #eee;
    animation: fadeIn 0.3s ease;
}

.selected-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #e7efff;
    color: #2a4db0;
    border-radius: 30px;
    padding: 6px 12px;
    font-size: 0.85em;
    border: 1px solid #d0dcff;
    transition: all 0.2s;
}

.selected-filter-tag:hover {
    background-color: #d3e2ff;
}

.remove-filter {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #bad1ff;
    color: #2a4db0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.2s;
}

.remove-filter:hover {
    background-color: #2a4db0;
    color: white;
}

/* Search within filters */
.filter-search-box {
    margin: 10px 15px;
    position: relative;
    display: flex;
    align-items: center;
}

.filter-search-input {
    width: 100%;
    padding: 10px 15px 10px 35px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95em;
    background-color: white;
    transition: all 0.2s;
}

.filter-search-input:focus {
    outline: none;
    border-color: #2a4db0;
    box-shadow: 0 0 0 3px rgba(42, 77, 176, 0.1);
}

.filter-search-icon {
    position: absolute;
    left: 10px;
    color: #999;
    font-size: 1em;
}

/* Empty state */
.empty-filter-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #999;
    text-align: center;
}

.empty-filter-icon {
    font-size: 2em;
    margin-bottom: 15px;
    color: #ccc;
}

.empty-filter-text {
    font-size: 1em;
    margin-bottom: 20px;
}

/* Show more button */
.show-more-btn {
    color: #2a4db0;
    background: none;
    border: none;
    padding: 10px 15px;
    font-size: 0.95em;
    cursor: pointer;
    margin-top: 12px;
    border-radius: 6px;
    background-color: #f0f4ff;
    transition: all 0.2s;
    display: block;
    text-align: center;
    width: 100%;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e0e8ff;
    position: relative;
    overflow: hidden;
}

.show-more-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(42, 77, 176, 0.1);
    transition: height 0.2s ease;
    z-index: 0;
}

.show-more-btn:hover {
    background-color: #e0e8ff;
    border-color: #d0dcff;
}

.show-more-btn:hover::after {
    height: 100%;
}

.show-more-btn span {
    position: relative;
    z-index: 1;
}

.job-ad {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.job-ad:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.job-ad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.job-ad-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.job-ad-publish {
    font-size: 0.9em;
    color: #777;
}

.job-ad-body {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.job-ad-company {
    font-size: 1em;
    color: #555;
    margin-bottom: 8px;
}

.job-ad-position {
    font-size: 1.1em;
    color: #222;
}

.job-ad-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* When only save button is present, align it to the left */
.job-ad-footer:has(.favorite-btn:only-child) {
    justify-content: flex-start;
}

.job-ad-footer .favorite-btn:only-child {
    margin-right: auto;
}

.ai-apply-btn {
    background-color: #007BFF;
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ai-apply-btn:hover {
    background-color: #0056b3;
}

/* Saved Jobs Button styling */
.saved-jobs-btn {
    background-color: #28a745;
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-weight: 500;
}

.saved-jobs-btn:hover {
    background-color: #218838;
    color: #fff;
    text-decoration: none;
}

/* Mobile back button styling - hidden by default */
.mobile-back-btn {
    display: none;
    background: none;
    border: none;
    font-size: 0.95em;
    color: #2a4db0;
    cursor: pointer;
    padding: 8px 15px 8px 0;
    font-weight: 500;
    transition: all 0.2s ease;
    align-items: center;
    gap: 6px;
}

.mobile-back-btn::before {
    content: '←';
    display: inline-block;
    font-weight: bold;
    font-size: 1.1em;
    line-height: 1;
    transition: transform 0.2s ease;
}

.mobile-back-btn:hover {
    color: #1e3a87;
}

.mobile-back-btn:hover::before {
    transform: translateX(-3px);
}

/* Only show mobile-only elements in mobile filter view */
.mobile-only-element {
    display: none !important;
}

/* AI-Apply Button styling (glowing) */
.ai-apply-btn {
    width: 220px;
    height: 50px;
    margin: 10px;
    border: none;
    outline: none;
    color: #fff;
    background: #111;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

.glow-on-select:before,
.glow-on-hover:before {
    content: '';
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
}

.glow-on-select:hover:before,
.glow-on-hover:hover:before {
    opacity: 1;
}

/* Make glow persist if active */
.glow-active:before {
    opacity: 1;
}

.glow-on-select:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #111;
    left: 0;
    top: 0;
    border-radius: 10px;
}

/* Job Actions Header */
.job-actions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 20px 30px 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.left-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ads-count-text {
    font-size: 1.5em;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.saved-jobs-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.saved-jobs-link:hover {
    background: rgba(231, 76, 60, 0.1);
    transform: translateY(-1px);
}

.ai-apply-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Mass AI-Apply Button */
.mass-ai-apply-btn {
    background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mass-ai-apply-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.mass-ai-apply-btn:hover:before {
    left: 100%;
}

.mass-ai-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6);
}

.mass-ai-apply-btn.disabled {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: #adb5bd;
    cursor: not-allowed;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
    pointer-events: auto; /* Ensure hover events work */
}

.mass-ai-apply-btn.disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

.mass-ai-apply-btn.disabled:before {
    display: none;
}

/* Ensure tooltip works on disabled button */
.mass-ai-apply-btn[disabled] {
    pointer-events: auto;
}

/* Wrapper for mass apply button to handle tooltips */
.mass-ai-apply-wrapper {
    display: inline-block;
    position: relative;
}

.info-mass-apply {
    color: #6c757d;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.info-mass-apply:hover {
    color: #007BFF;
    transform: scale(1.1);
}

/* Modern Popup Styles */
.info-mass-apply-content,
.mass-apply-confirmation {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    max-width: 500px;
    width: 90%;
    overflow: hidden;
    animation: modalAppear 0.3s ease-out;
    border: 1px solid #e9ecef;
    filter: none;
    backdrop-filter: none;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Popup overlay - create a separate overlay element */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

/* Remove the pseudo-element overlay */
.info-mass-apply-content:before,
.mass-apply-confirmation:before {
    display: none;
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 30px 20px 30px;
    background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%);
    color: white;
    position: relative;
}

.popup-icon {
    font-size: 24px;
}

.popup-icon.success {
    color: #27ae60;
}

.popup-header h2 {
    margin: 0;
    flex: 1;
    font-size: 1.5em;
    font-weight: 600;
}

.popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.popup-body {
    padding: 30px;
    background: #ffffff;
    color: #333;
}

.popup-description {
    font-size: 16px;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #333;
}

.feature-item i {
    color: #007BFF;
    font-size: 16px;
    width: 20px;
}

.feature-item span {
    color: #333;
}

.warning-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    margin: 15px 0;
    color: #856404;
}

.warning-box i {
    color: #f39c12;
    font-size: 18px;
}

.warning-box span {
    color: #856404;
}

.filters-preview {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    color: #333;
}

.popup-footer {
    padding: 20px 30px 30px 30px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: #ffffff;
}

.btn-primary {
    background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .job-actions-header {
        flex-direction: column;
        gap: 15px;
        margin: 15px;
        padding: 15px;
    }
    
    .left-actions {
        align-items: center;
    }
    
    .ai-apply-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .popup-header,
    .popup-body,
    .popup-footer {
        padding: 20px;
    }
    
    .popup-footer {
        flex-direction: column;
    }
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

/* Basic button styles */
.glow-on-click {
    width: 120px;
    height: 50px;
    border: none;
    outline: none;
    color: #fff;
    background: #111;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
    transition: color 0.3s, background 0.3s;
    overflow: hidden;
    font-size: 18px;
}

/* Glowing effect setup */
.glow-on-click:before {
    content: '';
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    border-radius: 10px;
}

/* Disabled button after applying */
.disabled {
    pointer-events: none;
    opacity: 0.6;
}

/* Active glow state */
.glow-on-click.glowing:before {
    opacity: 1;
}

/* Text change animation */
.text-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s;
}

.text-container.fade-out {
    opacity: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    /* Hide main back button when in mobile filter view */
    .filter-panel-container.mobile-filter-view .filter-back-btn {
        display: none;
    }
    
    /* Show mobile back button when in subcategory view */
    .filter-panel-container.mobile-filter-view .mobile-back-btn {
        display: block;
    }
    .search-input-container {
        flex-direction: column;
        align-items: center;
    }
    
    .search-input {
        width: 90%;
        margin-bottom: 10px;
    }
    
    .search-button {
        margin-left: 0;
        width: 90%;
    }
    
    .filter-panel-container {
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        max-height: 100vh;
    }
    
    /* Single-layer mobile view */
    .filter-columns {
        flex-direction: column;
    }
    
    .filter-column {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    /* Default view shows countries column for region filter */
    .filter-column.countries-column {
        display: block;
        flex: auto;
    }
    
    .filter-column.regions-column {
        display: none;
    }
    
    .filter-column.municipalities-column {
        display: none;
    }
    
    /* Default view for profession filter - show categories column */
    #profession-filter-panel .filter-column.regions-column {
        display: block;
        flex: auto;
    }
    
    #profession-filter-panel .filter-column.municipalities-column {
        display: none;
    }
    
    /* Mobile regions view - show regions when drilling down from countries */
    .filter-panel-container.mobile-regions-view .countries-column {
        display: none !important;
    }
    
    .filter-panel-container.mobile-regions-view .regions-column {
        display: block !important;
        flex: auto;
    }
    
    .filter-panel-container.mobile-regions-view .municipalities-column {
        display: none !important;
    }
    
    /* Mobile municipalities view - show municipalities when drilling down from regions */
    .filter-panel-container.mobile-municipalities-view .countries-column {
        display: none !important;
    }
    
    .filter-panel-container.mobile-municipalities-view .regions-column {
        display: none !important;
    }
    
    .filter-panel-container.mobile-municipalities-view .municipalities-column {
        display: block !important;
        width: 100%;
    }
    
    /* Mobile back buttons are controlled by JavaScript, not CSS classes */
    /* The buttons are hidden by default and shown/hidden via JavaScript */
    
    /* Ensure mobile back buttons are properly styled when shown */
    .mobile-back-btn {
        margin: 0 0 10px 0;
        padding: 8px 15px 8px 0;
    }
    
    /* Filters layout styling for mobile */
    .filters-layout {
        display: flex;
        flex-direction: column;
        padding: 15px 15px 0 15px;
        gap: 15px;
    }
    
    .job-ad {
        padding: 15px;
    }
    
    .job-ad-title,
    .job-ad-position {
        font-size: 1em;
    }
    
    .ai-apply-btn {
        padding: 8px 16px;
        font-size: 0.9em;
    }

    .saved-jobs-btn {
        font-size: 0.9em;
        padding: 8px 16px;
        margin-left: 10px !important;
    }

    /* Stack buttons vertically on very small screens */
    @media (max-width: 480px) {
        .ai-apply-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }
        
        .saved-jobs-btn {
            margin-left: 0 !important;
            margin-top: 10px;
        }
    }
    
    .ads-count-text {
        font-size: 1.2em;
    }
    
    /* Filter button mobile styling */
    .filter-buttons-row {
        flex-wrap: wrap;
    }
    
    .filter-button {
        width: 100%;
        justify-content: space-between;
        margin-bottom: 5px;
    }

    /* Mobile profession filter view - show subcategories when drilling down from categories */
    #profession-filter-panel.mobile-filter-view .filter-column.regions-column {
        display: none !important;
    }
    
    #profession-filter-panel.mobile-filter-view .filter-column.municipalities-column {
        display: block !important;
        flex: auto;
    }

    /* Only show mobile-only elements in mobile filter view */
    .filter-panel-container.mobile-filter-view .mobile-only-element {
        display: block !important;
    }
}

/* Expanded ads styles */

/* Base container styling */
.job-detail-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

/* Back Link */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #007BFF;
    text-decoration: none;
    font-size: 1em;
}

.back-link:hover {
    text-decoration: underline;
}

/* Header styling */
.job-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.job-logo {
    width: 120px;
    height: auto;
    margin-right: 20px;
}

.job-title {
    font-size: 2em;
    font-weight: bold;
    margin: 0;
}

.job-meta {
    font-size: 0.9em;
    color: #777;
    margin-top: 5px;
}

/* Section styling */
.job-section {
    margin-bottom: 30px;
}

.job-section h2 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #333;
    border-bottom: 2px solid #007BFF;
    display: inline-block;
    padding-bottom: 5px;
}

.job-info {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.6;
}

.job-info span {
    display: inline-block;
    margin-right: 20px;
}

.job-description {
    color: #555;
    line-height: 1.6;
}

/* Apply button styling */
.apply-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #007BFF;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.apply-btn:hover {
    background-color: #0056b3;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .job-detail-container {
        margin: 10px;
        padding: 15px;
        border-radius: 0;
        box-shadow: none;
    }

    .job-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-logo {
        width: 80px;
        margin-bottom: 10px;
    }

    .job-title {
        font-size: 1.5em;
    }

    .job-meta {
        font-size: 0.8em;
    }

    .job-section h2 {
        font-size: 1.2em;
    }

    .apply-btn {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        font-size: 1em;
    }
}

/* Modern Mass Apply Progress Modal */
.mass-apply-progress-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    z-index: 1001;
    max-width: 550px;
    width: 90%;
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #e9ecef;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.progress-modal-content {
    background: #ffffff;
}

/* Progress Header */
.progress-header {
    background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.progress-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.progress-header h2 {
    margin: 0;
    font-size: 1.6em;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-pulse {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: progressPulse 1.5s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* Progress Body */
.progress-body {
    padding: 30px;
}

/* Progress Stats */
.progress-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.2em;
    font-weight: 700;
    color: #007BFF;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    font-size: 2em;
    color: #dee2e6;
    font-weight: 300;
}

/* Progress Bar */
.progress-bar-wrapper {
    margin: 25px 0;
    position: relative;
}

.progress-bar-track {
    width: 100%;
    height: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #007BFF, #0056b3);
    border-radius: 6px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.progress-bar-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.progress-percentage {
    text-align: center;
    margin-top: 10px;
    font-size: 1.1em;
    font-weight: 600;
    color: #007BFF;
}

/* Progress Results */
.progress-results {
    display: flex;
    gap: 15px;
    margin: 25px 0;
}

.result-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.result-item.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.result-item.failed {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.result-item i {
    font-size: 1.2em;
}

/* Progress Message */
.progress-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    color: #6c757d;
    font-style: italic;
    margin-top: 20px;
}

.progress-message i {
    color: #007BFF;
    font-size: 1.1em;
}

/* Results Header */
.results-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

.results-header.neutral {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.results-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 28px;
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

.results-icon.success {
    background: rgba(40, 167, 69, 0.2);
}

.results-icon.neutral {
    background: rgba(108, 117, 125, 0.2);
}

/* Results Body */
.results-body {
    padding: 30px;
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.summary-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.summary-card.total {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    border-color: #dee2e6;
}

.summary-card.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-color: #28a745;
}

.summary-card.failed {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border-color: #dc3545;
}

.summary-number {
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.summary-card.total .summary-number { color: #6c757d; }
.summary-card.success .summary-number { color: #28a745; }
.summary-card.failed .summary-number { color: #dc3545; }

.summary-label {
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

.summary-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0.3;
    font-size: 1.2em;
}

/* Success/Warning Messages */
.success-message,
.warning-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 12px;
    margin: 15px 0;
    font-weight: 500;
}

.success-message {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.warning-message {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border: 1px solid #ffeaa7;
}

.success-message i,
.warning-message i {
    font-size: 1.3em;
}

/* Results Actions */
.results-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
}

.results-actions .btn-primary,
.results-actions .btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.results-actions .btn-primary {
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: white;
}

.results-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.results-actions .btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.results-actions .btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mass-apply-progress-modal {
        max-width: 95%;
        margin: 10px;
    }
    
    .progress-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .results-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .progress-results {
        flex-direction: column;
        gap: 10px;
    }
}

/* Show back-to-categories only in subcategory view on mobile */
@media (max-width: 768px) {
  #profession-filter-container.mobile-municipalities-view #back-to-categories {
    display: block !important;
  }
  #profession-filter-container:not(.mobile-municipalities-view) #back-to-categories {
    display: none !important;
  }
}

/* Profession filter panel back button logic for mobile */
@media (max-width: 768px) {
  /* Hide Search back button in subcategory view */
  #profession-filter-container.mobile-municipalities-view #back-to-search-from-profession {
    display: none !important;
  }
  /* Show Search back button only in main category view */
  #profession-filter-container.mobile-filter-view #back-to-search-from-profession {
    display: flex !important;
  }
  /* Hide Categories back button unless in subcategory view */
  #profession-filter-container:not(.mobile-municipalities-view) #back-to-categories {
    display: none !important;
  }
  #profession-filter-container.mobile-municipalities-view #back-to-categories {
    display: flex !important;
  }
}
