/* styles.css - Preferred Staffing Theme */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --preferred-green: #28a745;
    --preferred-dark: #1a1a1a;
    --preferred-light-green: #34ce57;
    --text-dark: #2E2E2E;
    --text-light: #666666;
    --text-muted: #999999;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --border-light: #e9ecef;
    --border-medium: #dee2e6;
    --error-red: #dc3545;
    --warning-yellow: #ffc107;
    --logo-height-desktop: 64px;
    --logo-height-tablet: 48px;
    --logo-height-mobile: 36px;
}

body {
    font-family: 'Arial', 'Helvetica Neue', sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Navigation Header Styles */
.top-nav {
    background: var(--background-white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

.nav-container {
    padding: 0 2rem;
    display: grid;
    grid-template-columns: minmax(200px, 1fr) auto minmax(200px, 1fr);
    align-items: center;
    width: 100%;
}

.logo-image {
    height: var(--logo-height-desktop);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.logo-section {
    display: flex;
    align-items: center;
    grid-column: 1;
    justify-self: start;
}

.nav-menu {
    grid-column: 2;
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.nav-menu a {
    color: #000;             
    font-size: 1.1rem;        
    font-weight: 600;         
    text-decoration: none;    
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--preferred-green);  
}

.nav-actions {
    grid-column: 3;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-self: end;
}

.nav-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.apply-btn-nav, .login-btn, .contact-btn {
    background: var(--preferred-green);
    color: white;
}

.apply-btn-nav:hover, .login-btn:hover, .contact-btn:hover {
    background: var(--preferred-light-green);
    transform: translateY(-1px);
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    background: url('../images/AdobeStock_200536843-1-scaled.jpeg') center center/cover no-repeat;
    color: white;
    padding: 4rem 0 6rem;
    text-align: center;
    overflow: hidden;
}

/* Green overlay */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(90deg, rgba(26, 26, 26, 0.8) 0%, rgba(87, 199, 133, 0.65) 50%, rgba(40, 167, 69, 0.55) 100%); 
    mix-blend-mode: multiply; 
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.underlined {
    position: relative;
    display: inline-block;
}

.underlined::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 4px;
    background: white;
    border-radius: 2px;
}

.jobs-available {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: inline-block;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    max-width: 300px;
    margin: 0 auto;
}

.hero-btn {
    background: var(--preferred-green);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    width: 100%;
    display: block;
    text-align: center;
    border: none;
    cursor: pointer;
}

.hero-btn:hover {
    background: var(--preferred-light-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Filter Section */
.filter-section {
    background: var(--background-white);
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 4px solid var(--preferred-green);
}

.filter-section h3 {
    background: linear-gradient(90deg, var(--preferred-green), var(--preferred-light-green));
    color: white;
    padding: 1rem 1.5rem;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 4px 4px 0 0;
}

.filter-group {
    padding: 1.5rem;
}

.filter-group .form-group {
    margin-bottom: 0;
}

.filter-group select {
    background: var(--background-white);
    border: 2px solid var(--border-medium);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    min-width: 250px;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--preferred-green);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Job Listing Styles */
.location-section {
    background: var(--background-white);
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    clear: both;
    display: block;
    width: 100%;
}

.location-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.location-header {
    background: linear-gradient(90deg, var(--preferred-green), var(--preferred-light-green));
    color: white;
    padding: 1.2rem 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.location-icon {
    color: white;
    margin-right: 0.5rem;
    font-size: 1.1em;
}

.job-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.job-item {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: block;
    transition: all 0.3s ease;
    position: relative;
}

.job-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--preferred-green);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.job-item:hover::before {
    transform: scaleY(1);
}

.job-item:hover {
    background-color: #f0f8f0;
    padding-left: 2rem;
}

.job-item:last-child {
    border-bottom: none;
}

.job-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--preferred-green);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.job-info {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.job-info strong {
    color: var(--text-dark);
    margin-right: 0.5rem;
    min-width: 80px;
}

.job-info-icon {
    margin-right: 0.5rem;
    color: var(--preferred-green);
    width: 16px;
}

.job-salary {
    color: var(--preferred-green);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    padding: 0.5rem 0.8rem;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 6px;
    width: fit-content;
}

.job-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.8rem;
    line-height: 1.5;
    padding: 0.8rem;
    background: var(--background-light);
    border-radius: 6px;
    border-left: 3px solid var(--preferred-green);
}

.job-description .description-content {
    margin-top: 0.5rem;
}

.job-description .description-content p {
    margin-bottom: 0.5rem;
}

.job-description .description-content p:last-child {
    margin-bottom: 0;
}

.job-description .description-content ul,
.job-description .description-content ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.job-description .description-content li {
    margin-bottom: 0.25rem;
}

.job-description .description-content strong,
.job-description .description-content b {
    color: var(--text-dark);
    font-weight: 600;
}

.job-description .description-content em,
.job-description .description-content i {
    font-style: italic;
}

.job-description .description-content h1,
.job-description .description-content h2,
.job-description .description-content h3,
.job-description .description-content h4,
.job-description .description-content h5,
.job-description .description-content h6 {
    color: var(--preferred-green);
    margin: 0.5rem 0 0.25rem 0;
    font-weight: 600;
}

.job-description .description-content h1 { font-size: 1.1em; }
.job-description .description-content h2 { font-size: 1.05em; }
.job-description .description-content h3 { font-size: 1em; }
.job-description .description-content h4,
.job-description .description-content h5,
.job-description .description-content h6 { font-size: 0.95em; }

.read-more {
    color: var(--preferred-green);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.read-more:hover {
    text-decoration: underline;
}

.description-expanded {
    max-height: none !important;
}

.description-collapsed {
    max-height: 4.5em;
    overflow: hidden;
    position: relative;
}

.description-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.5em;
    background: linear-gradient(transparent, var(--background-light));
}

/* Button Styles */
.apply-btn {
    background: linear-gradient(135deg, var(--preferred-green) 0%, var(--preferred-light-green) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 140px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, var(--preferred-light-green) 0%, var(--preferred-green) 100%);
}

.apply-btn:active {
    transform: translateY(0);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--background-white);
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 1px solid var(--border-light);
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    background: linear-gradient(135deg, var(--preferred-green) 0%, var(--preferred-light-green) 100%);
    color: white;
    padding: 2rem 2rem 1.5rem;
    border-radius: 12px 12px 0 0;
    position: relative;
    text-align: center;
}

.modal-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.modal-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
    color: white;
    font-weight: 600;
}

.close {
    color: white;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.required {
    color: var(--error-red);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--border-medium);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: var(--background-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--preferred-green);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
    background: #f8fff8;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
    transform: scale(1.2);
    accent-color: var(--preferred-green);
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1.4;
}

/* File Upload Styles */
.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: block;
    padding: 1.5rem;
    border: 2px dashed var(--border-medium);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--background-light);
    color: var(--text-light);
    font-weight: 500;
}

.file-upload-label:hover {
    border-color: var(--preferred-green);
    background: #f0fff0;
    color: var(--preferred-green);
}

.file-upload.has-file .file-upload-label {
    border-color: var(--preferred-green);
    background: #f0fff4;
    color: var(--preferred-green);
    border-style: solid;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, var(--preferred-green) 0%, var(--preferred-light-green) 100%);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.submit-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Messages */
.error {
    color: var(--error-red);
    font-size: 0.85rem;
    margin-top: 0.4rem;
    display: block;
    font-weight: 500;
}

.success-message {
    background: linear-gradient(135deg, var(--preferred-green) 0%, var(--preferred-light-green) 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.success-message h3 {
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}

.alert {
    padding: 1rem 1.2rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left-color: var(--error-red);
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left-color: var(--preferred-green);
}

/* Loading Styles */
.loading {
    display: none;
    text-align: center;
    padding: 2rem;
}

.spinner {
    border: 3px solid var(--border-light);
    border-top: 3px solid var(--preferred-green);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Jobs Message */
.no-jobs {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    font-size: 1.1rem;
    background: var(--background-white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid var(--border-light);
}

.no-jobs h2 {
    color: var(--preferred-green);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.no-jobs a {
    color: var(--preferred-green);
    text-decoration: none;
    font-weight: 600;
}

.no-jobs a:hover {
    text-decoration: underline;
}

/* Section Backgrounds */
.section-personal {
    background: linear-gradient(135deg, #f0fff0 0%, #e8f5e8 100%);
    border-left: 4px solid var(--preferred-green);
}

.section-address {
    background: linear-gradient(135deg, #f0fff0 0%, #e8f5e8 100%);
    border-left: 4px solid var(--preferred-green);
}

.section-resume {
    background: linear-gradient(135deg, #fffaf0 0%, #f5f0e8 100%);
    border-left: 4px solid #ffa726;
}

.section-info {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.section-info h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.section-info p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

/* Location Search Styles */
.location-search-form {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 4px solid var(--preferred-green);
}

.search-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 1rem;
}

.location-input-group {
    position: relative;
}

.location-input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--border-medium);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: var(--background-white);
}

.location-input:focus {
    outline: none;
    border-color: var(--preferred-green);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
    background: #f8fff8;
}

.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background-white);
    border: 1px solid var(--border-medium);
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
}

.location-suggestion {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.location-suggestion:hover {
    background: #f0f8f0;
    color: var(--preferred-green);
}

.location-suggestion:last-child {
    border-bottom: none;
}

.radius-group select {
    min-width: 120px;
}

.search-btn {
    background: linear-gradient(135deg, var(--preferred-green) 0%, var(--preferred-light-green) 100%);
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 140px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.search-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.search-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.current-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.95rem;
}

.clear-search {
    color: var(--preferred-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.clear-search:hover {
    background: rgba(40, 167, 69, 0.1);
    text-decoration: none;
}

.popular-locations {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.popular-locations h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.location-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.location-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--preferred-green) 0%, var(--preferred-light-green) 100%);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.location-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    text-decoration: none;
}

.user-location-suggestion {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f0fff0 0%, #e8f5e8 100%);
    border-radius: 6px;
    border-left: 4px solid var(--preferred-green);
}

.user-location-suggestion a {
    color: var(--preferred-green);
    text-decoration: none;
    font-weight: 600;
}

.user-location-suggestion a:hover {
    text-decoration: underline;
}

.expand-search-btn {
    background: linear-gradient(135deg, var(--preferred-green) 0%, var(--preferred-light-green) 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.expand-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    text-decoration: none;
}

.distance-badge {
    background: var(--preferred-green);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Job item distance display on mobile */
.job-item[data-distance]::after {
    content: attr(data-distance);
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--preferred-green);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Loading state for location search */
.search-loading {
    display: none;
    text-align: center;
    padding: 1rem;
    color: var(--text-light);
}

.search-loading .spinner {
    width: 20px;
    height: 20px;
    border-width: 2px;
    margin: 0 auto 0.5rem;
}

/* Existing User Popup Styles */
.existing-user-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.existing-user-popup.show {
    opacity: 1;
    visibility: visible;
}

.existing-user-content {
    background: var(--background-white);
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.existing-user-popup.show .existing-user-content {
    transform: scale(1);
}

.existing-user-header {
    background: linear-gradient(135deg, #dc3545 0%, #a71815 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.existing-user-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.existing-user-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

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

.existing-user-body {
    padding: 2rem;
}

.existing-user-message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.existing-user-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.existing-user-message p {
    margin: 0;
    color: #856404;
    font-weight: 500;
    line-height: 1.5;
}

.existing-user-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.existing-user-btn {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.existing-user-btn-primary {
    background: #e9ecef;
    color: #495057;
    border-color: #adb5bd;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.existing-user-btn-primary:hover {
    background: #15af4b;
    color: #495057;
    border-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.4);
}

.existing-user-btn-secondary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.existing-user-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.4);
}

.existing-user-btn-cancel {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #dee2e6;
}

.existing-user-btn-cancel:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #adb5bd;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .logo-section {
        order: 1;
    }

    .logo-image {
        height: 40px;
    }

    .nav-actions {
        order: 2;
        gap: 0.3rem;
    }
    
    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 1.5rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-light);
    }
      
    .nav-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .container {
        padding: 1rem;
    }

    .job-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .job-details {
        padding-right: 0;
    }

    .apply-btn {
        width: 100%;
        min-width: auto;
        float: none;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .filter-group select {
        min-width: auto;
        width: 100%;
    }

    .location-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .job-count {
        align-self: flex-start;
    }

    .search-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .search-btn {
        width: 100%;
    }

    .current-search {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .location-tags {
        justify-content: center;
    }

    .popular-locations h4 {
        text-align: center;
    }

    .existing-user-content {
        width: 95%;
        margin: 0 auto;
        border-radius: 8px;
    }
    
    .existing-user-header {
        padding: 1rem 1.5rem;
        border-radius: 8px 8px 0 0;
    }
    
    .existing-user-header h3 {
        font-size: 1.1rem;
    }
    
    .existing-user-body {
        padding: 1.5rem;
    }
    
    .existing-user-message {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .existing-user-icon {
        align-self: center;
        margin-top: 0;
    }
    
    .existing-user-btn {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
    }

    .location-header {
        font-size: 1.1rem;
        padding: 1rem;
    }

    .job-item {
        padding: 1rem;
    }

    .job-title {
        font-size: 1.2rem;
    }

    .modal-content {
        margin: 2% auto;
        border-radius: 0;
        width: 100%;
        height: 100%;
        max-height: none;
    }

    .modal-header {
        border-radius: 0;
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .logo-image {
        height: 35px;
    }

    .location-search-form {
        padding: 1rem;
    }

    .location-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .job-item[data-distance]::after {
        position: static;
        display: inline-block;
        margin-left: 0.5rem;
    }

    .existing-user-popup {
        padding: 1rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .existing-user-content {
        width: 100%;
        border-radius: 0;
        margin: 0;
        min-height: calc(100vh - 4rem);
    }
    
    .existing-user-header {
        border-radius: 0;
        padding: 1rem;
    }
    
    .existing-user-body {
        padding: 1rem;
    }
    
    .existing-user-message {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .existing-user-actions {
        gap: 0.75rem;
    }
    
    .existing-user-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
}