/* assets/css/jobs.css - Updated with location filtering */

/* --- Modern CSS Variables - Consistent with NaijaBased --- */
:root {
    --primary: #008753;
    --primary-dark: #0066cc;
    --primary-light: #4da6ff;
    --secondary: #00bfff;
    --accent: #ff6b6b;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --text-dark: #2D3748;
    --text-light: #718096;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* --- Modern Body Styling - PLAIN BACKGROUND --- */
body {
    background: #ffffff;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.jobs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
    flex-grow: 1;
}

/* --- Header Section --- */
.jobs-header {
    text-align: center;
    margin-bottom: 3rem;
}

.jobs-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.jobs-header .subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 400;
}

/* --- Location Auto-filter Notice --- */
.location-auto-filter {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin: 0 auto 2rem auto;
    max-width: 600px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    animation: slideInDown 0.3s ease;
}

.location-auto-filter p {
    margin: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-auto-filter .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.location-auto-filter .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

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

/* --- Action Buttons --- */
.job-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-primary-post {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.btn-primary-post:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.my-jobs-btn {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.my-jobs-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --- Search and Filters - Modern Styling --- */
.filter-bar {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper input {
    flex: 1;
    padding: 1rem 1.5rem 1rem 3rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.search-input-wrapper::before {
    content: "🔍";
    position: absolute;
    left: 1rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

.search-input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1);
    outline: none;
    transform: translateY(-1px);
}

.filter-dropdowns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.dropdown-select {
    padding: 1rem 1.5rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.dropdown-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1);
    outline: none;
}

.dropdown-select:disabled {
    background: var(--bg-light);
    color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.7;
}

@media (min-width: 768px) {
    .filter-bar {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 1.5rem;
    }
    
    .filter-dropdowns {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Empty State Styling --- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    margin: 2rem 0;
}

.empty-state svg {
    width: 100px;
    height: 100px;
    color: var(--border);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.empty-state p {
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary-action {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.btn-primary-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Alert styles */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin: 2rem 0;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* --- Jobs Grid Layout --- */
.jobs-main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

@media (min-width: 1024px) {
    .jobs-main-content {
        grid-template-columns: 1fr 1.5fr;
        gap: 3rem;
    }
}

/* --- Job List Column --- */
.job-list-column h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

#jobs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* --- Job Cards - Modern Design --- */
.job-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.job-card.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1);
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.job-card.active::before,
.job-card:hover::before {
    transform: scaleX(1);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.job-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
    line-height: 1.3;
    flex: 1;
}

.job-company {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    margin: 0.25rem 0 0 0;
}

.owner-badge {
    background: var(--success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.community-badge {
    background: var(--secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.job-meta span {
    background: rgba(30, 144, 255, 0.1);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(30, 144, 255, 0.2);
}

.job-summary {
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-light);
}

/* --- Job Details Column --- */
.job-details-column {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-details-content {
    width: 100%;
}

.job-details-placeholder {
    text-align: center;
    color: var(--text-light);
}

.job-details-placeholder svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.job-details-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.job-details-company {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 2rem;
}

.job-details-summary {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary);
}

.job-details-summary h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
}

.job-details-summary p {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 1rem;
}

.job-details-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
    .job-details-meta {
        grid-template-columns: 1fr 1fr;
    }
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-item strong {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-item span {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.job-details-description {
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 2rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* --- Action Buttons --- */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.apply-btn, .delete-btn, .login-to-apply-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    flex: 1;
    box-shadow: var(--shadow-sm);
}

.apply-btn {
    background: var(--gradient-primary);
    color: white;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.login-to-apply-btn {
    background: var(--warning);
    color: white;
}

.login-to-apply-btn:hover {
    background: #e0a800;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.delete-btn {
    background: var(--danger);
    color: white;
}

.delete-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* --- Modal Styling --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--text-light);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: var(--text-dark);
    background: rgba(0, 0, 0, 0.05);
}

/* --- Form Styling --- */
.modal-form-section {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    background: var(--bg-light);
}

.modal-form-section h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.file-help {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.modal-content form button {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.modal-content form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.disabled-location-message {
    font-size: 0.9em;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-style: italic;
}

.community-help {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* --- 3-Step Modal Styling --- */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border);
    transform: translateY(-50%);
    z-index: 1;
}

.step-indicator {
    background: var(--bg-white);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    border: 2px solid var(--border);
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.step-indicator.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.modal-step {
    display: none;
}

.modal-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.btn-prev, .btn-next, .btn-submit {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    flex: 1;
}

.btn-prev {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--border);
}

.btn-prev:hover {
    background: var(--bg-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-next, .btn-submit {
    background: var(--gradient-primary);
    color: white;
}

.btn-next:hover, .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.char-count {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.char-count.warning {
    color: var(--warning);
}

.char-count.error {
    color: var(--danger);
}

/* --- Submission Modal Styling --- */
#submissionModal .modal-content {
    text-align: center;
    max-width: 400px;
}

.loading-spinner {
    margin: 1rem auto;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Disable form interactions during submission */
.form-disabled {
    pointer-events: none;
    opacity: 0.6;
}

/* --- Ads Styling --- */
.ads.mb-4 {
    margin: 2rem 0;
}

/* --- Focus States for Accessibility --- */
.job-card:focus,
.btn-primary-post:focus,
.my-jobs-btn:focus,
.dropdown-select:focus,
.apply-btn:focus,
.delete-btn:focus,
.close-btn:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.btn-primary-action:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* --- Reduced Motion Support --- */
@media (prefers-reduced-motion: reduce) {
    .job-card,
    .btn-primary-post,
    .my-jobs-btn,
    .apply-btn,
    .delete-btn,
    .modal-content,
    .location-auto-filter,
    .btn-primary-action {
        transition: none;
        animation: none;
    }
    
    .job-card:hover {
        transform: none;
    }
    
    .modal-content {
        animation: none;
    }
    
    .loading-spinner {
        animation: none;
        border: 4px solid #f3f3f3;
        border-top: 4px solid var(--primary);
    }
    
    .location-auto-filter {
        animation: none;
    }
}

/* --- Mobile Responsive Adjustments --- */
@media (max-width: 768px) {
    .jobs-header h1 {
        font-size: 2.5rem;
    }
    
    .job-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary-post,
    .my-jobs-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .job-details-title {
        font-size: 1.75rem;
    }
    
    .jobs-container {
        padding-bottom: 3rem;
    }
    
    .location-auto-filter {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }
    
    .empty-state-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .progress-steps {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .progress-steps::before {
        display: none;
    }
    
    .step-indicator {
        margin: 0;
    }
    
    .step-actions {
        flex-direction: column;
    }
    
    .modal {
        padding: 1rem 0.5rem;
        align-items: flex-start;
    }
    
    .modal-content {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .jobs-container {
        padding: 1rem 0.5rem;
    }
    
    .jobs-header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.125rem;
    }
    
    .filter-bar {
        padding: 1.5rem;
    }
    
    .job-details-column {
        padding: 1.5rem;
    }
    
    .empty-state {
        padding: 3rem 1rem;
    }
}

@media (max-height: 700px) {
    .modal {
        align-items: flex-start;
        padding-top: 1rem;
    }
    
    .modal-content {
        margin-top: 1rem;
    }
}

/* Fix for content cutoff when footer is hidden on mobile */
@media (max-width: 768px) {
    .main-content-wrapper {
        padding-bottom: 3rem !important;
    }
    
    #marketplace-list {
        margin-bottom: 1rem;
    }
    
    .item-card:last-child {
        margin-bottom: 1rem;
    }
}

/* LOCATION MODAL MANUAL FORM FIX - ADD THIS TO JOBS.PHP */
#manualLocationForm.manual-select-form {
    margin-top: 20px !important;
    padding-top: 20px !important;
    border-top: 1px solid #e2e8f0 !important;
}

/* Force hide by default */
#manualLocationForm {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
}

/* When opened with inline styles (from JavaScript) */
#manualLocationForm[style*="display: block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: 1000px !important;
    overflow: visible !important;
    transition: all 0.3s ease !important;
}

/* Alternative: when open class is added */
#manualLocationForm.open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: 1000px !important;
    overflow: visible !important;
}

/* Location override link styling */
.filter-bar a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.filter-bar a:hover {
    text-decoration: underline;
}

/* Secondary button styling */
.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Remote job location styling */
.remote-job-location {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
    color: white !important;
    border: 1px solid #3d8b40 !important;
}

.remote-job-location::before {
    content: "🌍 ";
}

/* Remote jobs in job details */
.job-details-content .remote-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid #c8e6c9;
}

/* Edit Job Page Styles */
.edit-job-form-container {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    margin-top: 2rem;
}

.form-sections {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.form-section {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.form-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.form-section h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-light);
}

.form-section h3 small {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: normal;
}

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

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* My Jobs Page Styles */
.my-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: var(--success);
    color: white;
}

.status-badge.expired {
    background: var(--danger);
    color: white;
}

.job-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
}

.job-stats svg {
    vertical-align: middle;
    margin-right: 0.25rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Alert styles */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-dynamic {
    animation: slideInDown 0.3s ease;
}

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