/* CSS for regular devices */

.site-title-link,
.site-title-link h1,
.site-title-link:hover h1 {
    color: #006245 !important;
    text-decoration: none;
}

.loading {
    opacity: 0.5;
    pointer-events: none;
}

.dates {
    margin-top: 8px;
}

/* Form container improvements */
.col-lg-8.mx-auto.p-4.py-md-5 {
    max-width: 1000px;
    padding: 2rem !important;
}
.search-filters {
    max-width: 800px;
    margin: 0 auto;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Results count styling */
.results-count {
    padding: 20px 0;
    color: #444;
}

/* Job results container */
#jobResults {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 25px;
}
.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}


/* Base Select2 Container */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--multiple {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 4px;
    min-height: 40px;
}

/* Choice Pills */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #006245 !important;
    border: none;
    border-radius: 16px;
    margin: 2px 4px;
    height: 32px;
    display: flex;
    align-items: center;
    padding-left: 12px;
    padding-right: 8px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    color: white;
    font-size: 14px;
    margin-right: 8px;
    order: 1;
}

.btn-primary {
    background-color: #006245;
    border-color: #006245;
}

.btn-primary:hover {
    background-color: #004e37;
    border-color: #004e37;
}

/* Remove Button */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    order: 2;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0 12px 12px 0;
    padding: 0;
    margin-left: auto;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove span {
    font-size: 18px;
    line-height: 1;
}

/* Search Field */
.select2-container--default .select2-search--inline .select2-search__field {
    margin: 0;
    padding: 4px 8px;
    height: 30px !important;
    font-size: 14px;
    line-height: 24px !important; /* Added line-height */
}

.select2-container--default .select2-selection--multiple {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 4px;
    min-height: 36px; /* Slightly increased */
}

/* Job Card Styles */
.job-card {
    border: 1px solid #ddd;
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    contain: content;
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Compact Job Card Styles */
.job-card.compact {
    padding: 15px;
    margin: 10px 0;
}

.job-card-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.job-card.compact h3 {
    color: #006245;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.company-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.job-card.compact h4 {
    margin: 0;
    font-size: 1rem;
    color: #444;
}

.job-card.compact .date-posted {
    font-size: 0.85rem;
    color: #666;
    margin-top: 2px;
}

.job-card.compact .action-buttons {
    margin-top: 10px;
    margin-bottom: 5px;
}

.job-card.compact .flag-expired {
    font-size: 0.75rem;
}

.job-card h3 {
    color: #006245;
    margin-bottom: 15px;
}

.ad-container {
    min-height: 250px;
    contain: strict;
    will-change: transform;
    -webkit-transform: translate3d(0,0,0);
}
/* Search button and form switches */
.btn-primary {
    background-color: #006245 !important;
    border-color: #006245 !important;
}

.btn-primary:hover {
    background-color: #004e37 !important;
    border-color: #004e37 !important;
}

.form-check-input:checked {
    background-color: #006245 !important;
    border-color: #006245 !important;
}
.job-card p {
    margin-bottom: 10px;
}

.job-meta {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.keywords {
    font-size: 0.9em;
    color: #666;
}

/* Pagination Styles */
.pagination {
    margin: 20px 0 40px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.pagination .page-link {
    padding: 8px 16px;
    color: #006245;
    margin: 2px;
}

.pagination .page-item.active .page-link {
    background-color: #006245;
    border-color: #006245;
    color: white;
}

/* This ensures the pagination container has room at the bottom */
#jobResults {
    margin-bottom: 60px;
}
/* Additional Elements */
.results-count {
    font-size: 1.1em;
    color: #666;
    padding: 10px 0;
}
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.job-card.compact .action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.apply-button {
    background-color: #006245;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    padding: 8px 16px;
    display: inline-block;
}

.job-card.compact .apply-button,
.job-card.compact .details-button {
    padding: 6px 12px;
    font-size: 0.9rem;
}

.apply-button:hover {
    background-color: #004e37;
    color: white;
}

.details-button {
    background-color: #6c757d;
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    padding: 8px 16px;
    display: inline-block;
}

.details-button:hover {
    background-color: #5a6268;
    color: white !important;
}
.company-size {
    color: #666;
    font-size: 0.9em;
    margin-left: 10px;
}

.location {
    margin: 10px 0;
    color: #444;
}

.salary {
    color: #28a745;
    font-weight: bold;
    margin: 5px 0;
}

.source {
    color: #666;
    font-style: italic;
}

.search-history {
    margin: 20px 0;
}
.search-item {
    position: relative;
    min-width: 300px;
    padding-right: 30px !important;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    max-width: 600px;
}

.search-item:hover {
    background-color: #e9ecef !important;
}

.search-item small {
    color: #666;
    display: block;
    margin-bottom: 5px;
}
.search-item .badge {
    font-size: 0.8em;
    white-space: normal;
    text-align: left;
    display: inline-block;
    margin: 2px;
    word-break: normal;
    width: auto;
}

.search-history .badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
}.search-item .clear-search {
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
    color: #666;
    font-weight: bold;
    font-size: 18px;
    line-height: 1;
}

.search-item .clear-search:hover {
    color: #dc3545;
}

@media (max-width: 768px) {
    .col-lg-8.mx-auto {
        padding: 0.5rem !important;
    }

    header.d-flex.align-items-center {
        margin: 0 !important;
        padding: 0.5rem !important;
    }

    header img {
        width: 50px;
        height: 50px;
    }

    header .fs-4 {
        font-size: 1rem !important;
        padding: 5px !important;
    }
}

@media (max-width: 768px) {
    header.d-flex.flex-wrap.align-items-center {
        padding: 0 !important;
        margin: 0 !important;
    }

    .nav.col-12.col-md-auto.mb-2.justify-content-center.mb-md-0 {
        margin: 0 !important;
    }

    .nav-link.px-2 {
        padding: 4px !important;
    }

    .col-md-3.text-end {
        padding: 8px !important;
    }

    .border-bottom {
        border: none !important;
    }
}

/* Updated header styles to reduce top spacing */
header.d-flex.flex-wrap.align-items-center {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    margin-bottom: 1rem !important;
}

/* Adjust navigation spacing */
.nav.col-12.col-md-auto.mb-2.justify-content-center.mb-md-0 {
    justify-content: center !important;
}

/* Adjust link padding */
.nav-link.px-2 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

/* Adjust logo area spacing */
.d-flex.align-items-center.col-md-3 {
    margin-bottom: 0 !important;
}

/* Ensure consistent spacing for mobile */
@media (max-width: 768px) {
    header.d-flex.flex-wrap.align-items-center {
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
        margin-bottom: 0.5rem !important;
    }

    .nav.col-12.col-md-auto.mb-2.justify-content-center.mb-md-0 {
        margin: 0 !important;
    }
}


a {
    color: #006245 !important;
    text-decoration: none;
}

a:hover {
    color: #004e37 !important;
}

/* Preserve white text color for apply button */
.apply-button {
    color: white !important;
}

.apply-button:hover {
    color: white !important;
}

/* Keep badge links with their original styling */
a.badge {
    color: inherit !important;
}

a {
    color: #006245 !important;
    text-decoration: none;
}

a:hover {
    color: #004e37 !important;
}

/* Preserve white text color for apply button */
.apply-button {
    color: white !important;
}

.apply-button:hover {
    color: white !important;
}

/* Keep badge links with their original styling */
a.badge {
    color: inherit !important;
}

/* Header centering standardization */
.d-flex.flex-wrap.align-items-center.w-100 {
    justify-content: center;
    text-align: center;
}

@media (min-width: 768px) {
    .d-flex.flex-wrap.align-items-center.w-100 {
        justify-content: flex-start;
        text-align: left;
    }
}

/* Force navigation links to center at all viewport sizes */
.nav.col-12.col-md-auto.mb-2.justify-content-center.mb-md-0,
.col-md-auto {
    display: flex;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
}

.nav-link {
    text-align: center !important;
}

#jobResults {
    min-height: 200px;
    position: relative;
}

.loading-indicator {
    text-align: center;
    padding: 40px 0;
    display: none;
}
.loading-indicator.active {
    display: block;
}
.stats-display {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px 15px;
    text-align: center;
    font-size: 0.85em;
    color: #6c757d;
    transition: opacity 0.5s ease;
    margin: 10px 0;
}
.tracking-stats {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.85em;
    color: #6c757d;
}

.table-responsive {
    margin-bottom: 2rem;
}

.table th {
    background-color: #f8f9fa;
}

.table td {
    vertical-align: middle;
}

.btn-sm {
    padding: .25rem .5rem;
    font-size: .875rem;
}
.nav.col-12.col-md-auto.mb-2.justify-content-center.mb-md-0 li:not(:last-child)::after {
    content: '•';
    display: inline-block;
    margin: 0 5px;
    vertical-align: middle;
    color: #212529;
}
.nav.col-12.col-md-auto.mb-2.justify-content-center.mb-md-0 li {
    display: flex;
    align-items: center;
}


/* Regular viewport header */
.d-flex.flex-wrap.align-items-center.w-100 {
    justify-content: flex-start;
    text-align: left;
}



@media (min-width: 768px) {
    .search-item {
        min-width: 300px;
        max-width: calc(50% - 20px);
        flex: 1 1 calc(50% - 20px);
    }

    .search-history {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        width: 100%;
        max-width: 800px;
        margin: 20px auto;
    }
}

@media (max-width: 768px) {
    .search-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
}


.ad-container {
    display: block;
    clear: both;
    text-align: center;
    margin: 20px 0;
}
.d-flex.align-items-center.w-100 {
    justify-content: flex-start;
    gap: 15px;
}

.site-title-link {
    flex-shrink: 0;
}

.d-flex.align-items-center.w-100 {
    justify-content: flex-start;
    gap: 15px;
}

div[style*="padding:20px"] {
    background-color: #f8f9fa !important;
    border-radius: 8px;
    padding: 10px 15px;
    margin-left: auto;
    min-width: 400px;
    max-width: 500px;
    font-size: 0.85em;
    color: #6c757d;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.fs-6.text-muted.mb-0 {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.85em;
    color: #6c757d;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
@media (max-width: 768px) {
    .stats-carousel {
        height: 20px;
        background: #f8f9fa;
        border-radius: 8px;
        padding: 10px;
        margin: 10px 0;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
}
div[style*="padding:20px"] {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 16px;
    margin-left: auto;
    min-width: 400px;
    max-width: 500px;
}

div[style*="padding:20px"] small {
    font-size: 0.85em;
    color: #6c757d;
}

.fs-6.text-muted.mb-0 {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 15px;
}




.mobile-stats-wrapper {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px 15px;
    margin-left: auto;
    color: #6c757d;
    font-size: 0.85em;
    display: flex;
    flex-flow: row wrap;
    gap: 8px;
    justify-content: flex-start;
}

.stats-item {
    white-space: nowrap;
    flex: 0 1 auto;
}
.stats-item:not(:last-child)::after {
    content: '•';
    margin: 0 10px;
    color: #adb5bd;
}

.nav-link.active {
    background-color: #006245;
    color: white !important;
    border-radius: 4px;
}

/* End CSS for regular devices */

@media (min-width: 769px) {
    .mobile-stats-wrapper {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 8px;
        margin-left: auto;
        color: #6c757d;
        font-size: 0.85em;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .stats-item:not(:last-child)::after {
        content: none;
    }
}

.social-links {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 24px;
    margin: 20px 0;
}

.social-links a {
    margin: 0 10px;
    color: #666;
    text-decoration: none;
}