/* Loxo Enhanced SPA Styles */

/* SPA Container and Animations */
.loxo-spa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow: hidden;
}

/* Back Button Container */
.loxo-back-button-container {
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideInDown 0.4s ease;
}

.loxo-back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.loxo-back-button:hover {
    transform: translateX(-2px);
}

.loxo-back-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.loxo-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 14px;
}

.loxo-breadcrumb-home {
    color: #007cba;
    font-weight: 500;
}

.loxo-breadcrumb-separator {
    color: #adb5bd;
}

.loxo-breadcrumb-current {
    color: #333;
    font-weight: 500;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Main Content Container with Animations */
.loxo-spa-main-content {
    position: relative;
    min-height: 400px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.loxo-spa-main-content.transitioning {
    opacity: 0.5;
    pointer-events: none;
}

.loxo-spa-main-content.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
}

.loxo-spa-main-content.slide-in-right {
    transform: translateX(0);
    opacity: 1;
    animation: slideInRight 0.4s ease;
}

.loxo-spa-main-content.slide-in-left {
    transform: translateX(0);
    opacity: 1;
    animation: slideInLeft 0.4s ease;
}

/* Keyframe Animations */
@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Enhanced Loading States */
.loxo-spa-loading,
.loxo-jobs-loading,
.loxo-detail-loading {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
    animation: fadeInUp 0.3s ease;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.loxo-loading-spinner {
    display: inline-block;
    width: 48px;
    height: 48px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #f97316;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loxo-loading-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.loxo-loading-message {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

.loxo-loading-spinner.small {
    width: 20px;
    height: 20px;
    border-width: 2px;
    margin: 0 8px 0 0;
}

/* Inline loading states */
.loxo-inline-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    color: #6c757d;
    font-size: 14px;
}

.loxo-btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.loxo-btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

/* Error States */
.loxo-spa-error {
    text-align: center;
    padding: 60px 20px;
    color: #dc3545;
    animation: fadeInUp 0.3s ease;
}

.loxo-spa-error .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

.loxo-spa-error h3 {
    margin: 0 0 12px 0;
    color: #dc3545;
}

.loxo-spa-error p {
    margin: 0 0 20px 0;
    color: #6c757d;
}

/* Notifications */
.loxo-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 999999;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.loxo-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.loxo-notification-error {
    background: #dc3545;
}

.loxo-notification-warning {
    background: #ffc107;
    color: #212529;
}

/* Filter Bar */
.loxo-spa-filters {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.loxo-spa-filters h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.loxo-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.loxo-filter-group {
    display: flex;
    flex-direction: column;
}

.loxo-filter-group label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #555;
    font-size: 14px;
}

.loxo-filter-group input,
.loxo-filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.loxo-filter-group input:focus,
.loxo-filter-group select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.loxo-filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.loxo-filter-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.loxo-btn-primary {
    background: #007cba;
    color: white;
}

.loxo-btn-primary:hover {
    background: #005a87;
}

.loxo-btn-orange {
    background: var(--e-global-color-primary);
    color: white !important;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.loxo-btn-orange:hover {
    background: var(--e-global-color-primary);
    color: white !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    filter: brightness(0.85);
}

.loxo-btn-secondary {
    background: #6c757d;
    color: white;
}

.loxo-btn-secondary:hover {
    background: #545b62;
}

.loxo-btn-clear {
    background: transparent;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.loxo-btn-clear:hover {
    background: #f8f9fa;
    color: #495057;
}

/* Results Summary */
.loxo-spa-results {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.loxo-results-info {
    color: #6c757d;
    font-size: 14px;
}

.loxo-sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.loxo-sort-controls label {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.loxo-sort-controls select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Job Cards Grid */
.loxo-spa-jobs {
    display: grid;
    gap: 12px;
    margin-bottom: 30px;
}

/* Modern Ultra-Compact Job Cards */
.loxo-job-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    position: relative;
    margin-bottom: 16px;
}

.loxo-job-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

/* Posted date at top right corner */
.loxo-job-date-corner {
    position: absolute;
    top: 16px;
    right: 16px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 500;
    background: #f9fafb;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Large prominent title section */
.loxo-job-title-section {
    margin-bottom: 16px;
    margin-right: 80px; /* Space for date */
}

.loxo-job-title-large {
    margin: 0 0 8px 0;
    font-size: 25px !important;
    font-weight: 700;
    line-height: 1.3;
    color: #1f2937;
}

.loxo-job-title-large a {
    color: #f97316;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 25px;
    font-weight: 700;
}

.loxo-job-title-large a:hover {
    color: #ea580c;
}

.loxo-job-company {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
    font-weight: 500;
}

/* Light blue highlighted tags */
.loxo-job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.loxo-job-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #bfdbfe;
}

.loxo-job-meta-tag .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.loxo-job-meta-tag.location {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.loxo-job-meta-tag.salary {
    background: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
}

.remote-indicator {
    background: #7c3aed;
    color: white;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 11px;
    margin-left: 4px;
    font-weight: 600;
}

/* View Details button at bottom right */
.loxo-job-footer-final {
    position: absolute;
    bottom: 16px;
    right: 16px;
}

.loxo-view-job-btn-final {
    background: #f97316;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.loxo-view-job-btn-final:hover {
    background: #ea580c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(249, 115, 22, 0.3);
}

.loxo-view-job-btn-final .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Legacy styles for backwards compatibility */
.loxo-job-header {
    margin-bottom: 16px;
}

.loxo-job-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.loxo-job-link {
    color: #007cba;
    text-decoration: none;
    transition: color 0.2s ease;
}

.loxo-job-link:hover {
    color: #005a87;
    text-decoration: underline;
}

.loxo-job-company {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
}

.loxo-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.loxo-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 14px;
}

.loxo-meta-item .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.loxo-job-content {
    margin-bottom: 20px;
}

.loxo-job-excerpt {
    color: #555;
    line-height: 1.5;
    margin-bottom: 12px;
}

.loxo-job-salary {
    font-weight: 600;
    color: #28a745;
    font-size: 16px;
}

.loxo-job-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.loxo-job-actions button,
.loxo-job-actions a {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.loxo-save-job {
    background: transparent !important;
    border: 1px solid #dee2e6 !important;
    color: #6c757d !important;
    padding: 8px !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.loxo-save-job:hover {
    background: #f8f9fa !important;
    color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.loxo-save-job.saved {
    background: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
}

/* Loading States */
.loxo-spa-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.loxo-spa-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Styles */
.loxo-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
}

.loxo-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.loxo-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.loxo-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #6c757d;
    transition: all 0.2s ease;
    z-index: 10;
}

.loxo-modal-close:hover {
    background: #e9ecef;
    color: #495057;
}

.loxo-job-details {
    padding: 40px;
}

.loxo-job-details-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.loxo-job-details-header h2 {
    margin: 0 0 16px 0;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.loxo-detail-company {
    font-size: 18px;
    color: #007cba;
    margin-bottom: 16px;
}

.loxo-detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 16px;
}

.loxo-detail-location,
.loxo-detail-type,
.loxo-detail-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 14px;
}

.loxo-detail-salary {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #28a745;
    font-size: 18px;
    font-weight: 600;
}

.loxo-job-details-content {
    margin-bottom: 30px;
}

.loxo-job-description h3 {
    color: #333;
    font-size: 20px;
    margin: 0 0 16px 0;
    font-weight: 600;
}

.loxo-job-description .loxo-content {
    line-height: 1.6;
    color: #555;
}

.loxo-job-description .loxo-content h1,
.loxo-job-description .loxo-content h2,
.loxo-job-description .loxo-content h3,
.loxo-job-description .loxo-content h4,
.loxo-job-description .loxo-content h5,
.loxo-job-description .loxo-content h6 {
    color: #333;
    margin: 20px 0 12px 0;
}

.loxo-job-description .loxo-content ul,
.loxo-job-description .loxo-content ol {
    margin: 12px 0;
    padding-left: 24px;
}

.loxo-job-description .loxo-content li {
    margin-bottom: 6px;
}

/* Force margin-bottom on paragraphs in job description */
.loxo-job-description .loxo-content p {
    margin-bottom: 10px !important;
}

.loxo-job-contact {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 24px;
}

.loxo-job-contact h3 {
    color: #333;
    font-size: 18px;
    margin: 0 0 16px 0;
    font-weight: 600;
}

.loxo-job-contact p {
    margin: 8px 0;
    color: #555;
}

.loxo-job-contact a {
    color: #007cba;
    text-decoration: none;
}

.loxo-job-contact a:hover {
    text-decoration: underline;
}

.loxo-job-details-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Load More Button */
.loxo-load-more {
    text-align: center;
    margin-top: 30px;
}

.loxo-load-more button {
    padding: 12px 24px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.loxo-load-more button:hover {
    background: #005a87;
}

.loxo-load-more button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* No Jobs Message */
.loxo-no-jobs {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.loxo-no-jobs h3 {
    margin: 0 0 12px 0;
    font-size: 24px;
    color: #495057;
}

.loxo-no-jobs p {
    margin: 0;
    font-size: 16px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Apply Modal Styles */
.loxo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loxo-modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.loxo-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.loxo-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.loxo-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.loxo-modal-close:hover {
    background: #e9ecef;
    color: #495057;
}

.loxo-modal-body {
    padding: 0;
}

#loxo-apply-iframe {
    border: none;
    width: 100%;
    height: 600px;
    display: block;
}

/* Application Form Modal Styles */
.loxo-apply-modal-content {
    max-width: 700px;
    max-height: 95vh;
}

.loxo-apply-modal-content .loxo-modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(95vh - 120px); /* Account for header */
}

.loxo-apply-modal-content .loxo-application-form-container {
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.loxo-apply-modal-content .loxo-form-title {
    margin-bottom: 25px;
    font-size: 24px;
    text-align: left;
}

.loxo-apply-modal-content .loxo-form-row {
    margin-bottom: 20px;
}

.loxo-apply-modal-content .loxo-submit-row {
    margin-top: 25px;
    text-align: left;
}

.loxo-apply-modal-content .loxo-submit-button {
    width: auto;
    min-width: 160px;
}

.loxo-apply-modal-content .loxo-consent-section {
    margin: 25px 0;
    padding: 18px;
}

.loxo-apply-modal-content .loxo-success-message {
    margin: 20px 0;
    border-radius: 6px;
}

/* Loading state for form */
.loxo-form-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.loxo-form-loading .loxo-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e9ecef;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.loxo-form-loading p {
    margin: 0;
    font-size: 16px;
}

/* Error state for form */
.loxo-form-error {
    text-align: center;
    padding: 30px 20px;
    background: #f8d7da;
    border: 1px solid #f1b0b7;
    border-radius: 6px;
    color: #721c24;
}

.loxo-form-error h4 {
    margin: 0 0 15px 0;
    color: #721c24;
}

.loxo-form-error p {
    margin: 0 0 20px 0;
}

.loxo-form-error .loxo-btn-primary {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    /* Tablet adjustments */
    .loxo-spa-container {
        padding: 16px;
    }
    
    .loxo-spa-filters {
        padding: 18px;
    }
    
    .loxo-filter-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .loxo-job-card {
        padding: 18px;
    }
    
    .loxo-job-title-large {
        font-size: 22px !important;
    }
    
    .loxo-job-title-large a {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    /* Mobile optimizations */
    .loxo-spa-container {
        padding: 12px;
    }
    
    .loxo-spa-filters {
        padding: 16px;
        margin-bottom: 20px;
        border-radius: 8px;
    }
    
    .loxo-spa-filters h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .loxo-filter-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .loxo-filter-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .loxo-filter-group input,
    .loxo-filter-group select {
        padding: 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 6px;
    }
    
    .loxo-filter-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 16px;
        padding-top: 16px;
    }
    
    .loxo-filter-actions button {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 16px;
        min-height: 44px; /* iOS touch target */
    }
    
    /* Results section mobile */
    .loxo-spa-results {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 16px;
        padding: 12px 0;
    }
    
    .loxo-results-info {
        font-size: 13px;
    }
    
    .loxo-sort-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .loxo-sort-controls select {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 120px;
    }
    
    /* Job cards mobile - ultra-compact design */
    .loxo-spa-jobs {
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .loxo-job-card {
        padding: 16px;
        margin-bottom: 12px;
        position: relative;
    }
    
    /* Adjust date corner for mobile */
    .loxo-job-date-corner {
        position: absolute;
        top: 12px;
        right: 12px;
        font-size: 11px;
        padding: 3px 6px;
        background: #f1f3f4;
        border-radius: 3px;
    }
    
    /* Mobile title section adjustments */
    .loxo-job-title-section {
        margin-bottom: 12px;
        margin-right: 70px; /* Space for mobile date */
    }
    
    .loxo-job-title-large {
        font-size: 18px !important;
        margin-bottom: 6px;
        line-height: 1.3;
    }
    
    .loxo-job-title-large a {
        font-size: 18px;
    }
    
    .loxo-job-company {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    /* Mobile tags layout */
    .loxo-job-tags {
        gap: 6px;
        margin-bottom: 16px;
        flex-wrap: wrap;
    }
    
    .loxo-job-meta-tag {
        font-size: 12px;
        padding: 4px 8px;
        border-radius: 12px;
    }
    
    .loxo-job-meta-tag .dashicons {
        font-size: 12px;
        width: 12px;
        height: 12px;
    }
    
    .remote-indicator {
        font-size: 10px;
        padding: 1px 4px;
        margin-left: 3px;
    }
    
    /* Mobile view button positioning */
    .loxo-job-footer-final {
        bottom: 12px;
        right: 12px;
    }
    
    .loxo-view-job-btn-final {
        padding: 8px 14px;
        font-size: 13px;
        min-height: 36px;
    }
    
    .loxo-view-job-btn-final .dashicons {
        font-size: 14px;
        width: 14px;
        height: 14px;
    }
    
    /* Legacy elements mobile adjustments */
    .loxo-job-title {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 6px;
    }
    
    .loxo-job-link {
        font-size: 16px;
    }
    
    .loxo-job-meta {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .loxo-meta-item {
        font-size: 12px;
        align-self: flex-start;
    }
    
    .loxo-meta-item .dashicons {
        font-size: 14px;
        width: 14px;
        height: 14px;
    }
    
    .loxo-job-excerpt {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    
    .loxo-job-actions {
        width: 100%;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .loxo-job-actions button,
    .loxo-job-actions a {
        padding: 8px 12px;
        font-size: 13px;
        min-height: 36px;
    }
    
    .loxo-save-job {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
    }
    
    /* Back button mobile */
    .loxo-back-button-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 0;
        margin-bottom: 16px;
    }
    
    .loxo-back-button {
        padding: 8px 12px;
        font-size: 13px;
        gap: 6px;
    }
    
    .loxo-back-button .dashicons {
        font-size: 14px;
        width: 14px;
        height: 14px;
    }
    
    .loxo-breadcrumb {
        font-size: 12px;
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .loxo-breadcrumb-current {
        max-width: 250px;
    }
    
    /* Modal mobile adjustments */
    .loxo-modal-content {
        width: 95%;
        height: 95%;
        margin: 2.5%;
        border-radius: 8px;
    }
    
    .loxo-modal-header {
        padding: 12px 16px;
    }
    
    .loxo-modal-header h3 {
        font-size: 16px;
    }
    
    .loxo-modal-close {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .loxo-job-details {
        padding: 20px;
    }
    
    .loxo-job-details-header h2 {
        font-size: 22px;
        line-height: 1.3;
    }
    
    .loxo-detail-company {
        font-size: 16px;
    }
    
    .loxo-detail-meta-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .loxo-detail-salary {
        font-size: 16px;
    }
    
    .loxo-job-details-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    /* Load more button mobile */
    .loxo-load-more button {
        width: 100%;
        padding: 14px 24px;
        font-size: 16px;
        min-height: 44px;
    }
    
    /* No jobs message mobile */
    .loxo-no-jobs {
        padding: 40px 16px;
    }
    
    .loxo-no-jobs h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .loxo-no-jobs p {
        font-size: 14px;
    }
    
    /* Loading states mobile */
    .loxo-spa-loading,
    .loxo-jobs-loading,
    .loxo-detail-loading {
        padding: 40px 16px;
    }
    
    .loxo-loading-title {
        font-size: 16px;
    }
    
    .loxo-loading-message {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    /* Small mobile optimizations */
    .loxo-spa-container {
        padding: 10px;
    }
    
    .loxo-spa-filters {
        padding: 12px;
        margin-bottom: 16px;
    }
    
    .loxo-spa-filters h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .loxo-filter-row {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .loxo-filter-group label {
        font-size: 12px;
    }
    
    .loxo-filter-group input,
    .loxo-filter-group select {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    .loxo-filter-actions {
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .loxo-filter-actions button {
        padding: 12px 18px;
        font-size: 15px;
    }
    
    .loxo-spa-results {
        padding: 10px 0;
        margin-bottom: 12px;
    }
    
    .loxo-results-info {
        font-size: 12px;
    }
    
    .loxo-sort-controls label {
        font-size: 12px;
    }
    
    .loxo-sort-controls select {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 100px;
    }
    
    .loxo-job-card {
        padding: 14px;
        margin-bottom: 10px;
    }
    
    .loxo-job-date-corner {
        top: 10px;
        right: 10px;
        font-size: 10px;
        padding: 2px 5px;
    }
    
    .loxo-job-title-section {
        margin-right: 60px;
        margin-bottom: 10px;
    }
    
    .loxo-job-title-large {
        font-size: 16px !important;
        margin-bottom: 4px;
    }
    
    .loxo-job-title-large a {
        font-size: 16px;
    }
    
    .loxo-job-company {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .loxo-job-tags {
        gap: 4px;
        margin-bottom: 12px;
    }
    
    .loxo-job-meta-tag {
        font-size: 11px;
        padding: 3px 6px;
        border-radius: 10px;
    }
    
    .loxo-job-meta-tag .dashicons {
        font-size: 11px;
        width: 11px;
        height: 11px;
    }
    
    .loxo-job-footer-final {
        bottom: 10px;
        right: 10px;
    }
    
    .loxo-view-job-btn-final {
        padding: 6px 12px;
        font-size: 12px;
        min-height: 32px;
    }
    
    .loxo-view-job-btn-final .dashicons {
        font-size: 12px;
        width: 12px;
        height: 12px;
    }
    
    .loxo-job-title {
        font-size: 15px;
    }
    
    .loxo-job-meta {
        gap: 6px;
        margin-bottom: 10px;
    }
    
    .loxo-meta-item {
        font-size: 11px;
    }
    
    .loxo-job-excerpt {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .loxo-job-actions button,
    .loxo-job-actions a {
        padding: 6px 10px;
        font-size: 12px;
        min-height: 32px;
    }
    
    .loxo-save-job {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
    }
    
    .loxo-back-button {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .loxo-breadcrumb {
        font-size: 11px;
    }
    
    .loxo-breadcrumb-current {
        max-width: 200px;
    }
    
    .loxo-modal-content {
        width: 98%;
        height: 98%;
        margin: 1%;
        border-radius: 6px;
    }
    
    .loxo-job-details {
        padding: 16px;
    }
    
    .loxo-job-details-header h2 {
        font-size: 20px;
    }
    
    .loxo-detail-company {
        font-size: 15px;
    }
    
    .loxo-detail-salary {
        font-size: 15px;
    }
}

@media (max-width: 320px) {
    /* Very small screens */
    .loxo-spa-container {
        padding: 8px;
    }
    
    .loxo-spa-filters {
        padding: 10px;
    }
    
    .loxo-job-card {
        padding: 12px;
    }
    
    .loxo-job-date-corner {
        top: 8px;
        right: 8px;
        font-size: 9px;
        padding: 1px 4px;
    }
    
    .loxo-job-title-section {
        margin-right: 50px;
    }
    
    .loxo-job-title-large {
        font-size: 14px !important;
    }
    
    .loxo-job-title-large a {
        font-size: 14px;
    }
    
    .loxo-job-company {
        font-size: 12px;
    }
    
    .loxo-job-meta-tag {
        font-size: 10px;
        padding: 2px 5px;
    }
    
    .loxo-view-job-btn-final {
        padding: 5px 8px;
        font-size: 11px;
        min-height: 28px;
    }
    
    .loxo-breadcrumb-current {
        max-width: 120px;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .loxo-spa-filters {
        padding: 12px;
    }
    
    .loxo-filter-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .loxo-filter-actions {
        flex-direction: row;
        gap: 10px;
    }
    
    .loxo-filter-actions button {
        width: auto;
        flex: 1;
        padding: 10px 16px;
    }
    
    .loxo-modal-content {
        width: 90%;
        height: 90%;
    }
}

/* Touch device optimizations */
@media (pointer: coarse) {
    /* Disable hover effects on touch devices */
    .loxo-job-card:hover {
        transform: none;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .loxo-view-job-btn-final:hover,
    .loxo-btn-primary:hover,
    .loxo-back-button:hover {
        transform: none;
    }
    
    /* Ensure all interactive elements meet touch target requirements */
    .loxo-view-job-btn-final,
    .loxo-save-job,
    .loxo-share-job,
    .loxo-btn-primary,
    .loxo-btn-clear,
    .loxo-back-button,
    .loxo-modal-close {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Adjust for smaller screens on touch devices */
    @media (max-width: 480px) {
        .loxo-view-job-btn-final,
        .loxo-job-actions button,
        .loxo-job-actions a {
            min-height: 36px;
        }
        
        .loxo-save-job {
            min-height: 32px;
            min-width: 32px;
        }
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .loxo-job-card {
        border-width: 2px;
        border-color: #000;
    }
    
    .loxo-job-meta-tag {
        border-width: 2px;
    }
    
    .loxo-view-job-btn-final,
    .loxo-btn-primary {
        border: 2px solid #000;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .loxo-job-card:hover {
        transform: none;
    }
    
    .loxo-view-job-btn-final:hover,
    .loxo-btn-primary:hover,
    .loxo-back-button:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .loxo-spa-filters,
    .loxo-modal,
    .loxo-job-actions,
    .loxo-job-details-actions {
        display: none !important;
    }
    
    .loxo-job-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Modal Application Form Styles */
.loxo-application-form-container.modal-form {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.loxo-application-form-container.modal-form .loxo-form-title {
    display: none !important;
}

.loxo-application-form-container.modal-form .loxo-form-row {
    margin-bottom: 20px;
}

.loxo-application-form-container.modal-form .loxo-form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.loxo-application-form-container.modal-form .loxo-form-input,
.loxo-application-form-container.modal-form .loxo-form-textarea,
.loxo-application-form-container.modal-form .loxo-form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.loxo-application-form-container.modal-form .loxo-form-input:focus,
.loxo-application-form-container.modal-form .loxo-form-textarea:focus,
.loxo-application-form-container.modal-form .loxo-form-select:focus {
    border-color: #f47b20;
    outline: none;
    box-shadow: 0 0 0 2px rgba(244, 123, 32, 0.1);
}

.loxo-application-form-container.modal-form .loxo-file-upload-container {
    position: relative;
}

.loxo-application-form-container.modal-form .loxo-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.loxo-application-form-container.modal-form .loxo-file-upload-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    background: #f8f9fa;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.loxo-application-form-container.modal-form .loxo-file-upload-button:hover {
    border-color: #f47b20;
    background: #fff;
    color: #f47b20;
}

.loxo-application-form-container.modal-form .loxo-field-hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
}

.loxo-application-form-container.modal-form .loxo-consent-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin: 25px 0;
    text-align: left;
}

.loxo-application-form-container.modal-form .loxo-consent-section * {
    text-align: left !important;
}

.loxo-application-form-container.modal-form .loxo-consent-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    text-align: left;
}

.loxo-application-form-container.modal-form .loxo-checkbox-row {
    margin-bottom: 15px;
}

.loxo-application-form-container.modal-form .loxo-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

.loxo-application-form-container.modal-form .loxo-checkbox {
    margin: 0;
    margin-top: 2px;
    transform: scale(1.1);
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.loxo-application-form-container.modal-form .consent-text {
    flex: 1;
    margin-left: 0;
}

.loxo-application-form-container.modal-form .loxo-submit-button {
    background: #f47b20;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 160px;
}

.loxo-application-form-container.modal-form .loxo-submit-button:hover {
    background: #e26a0f;
}

.loxo-application-form-container.modal-form .loxo-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.loxo-application-form-container.modal-form .required {
    color: #dc3545;
}

.loxo-application-form-container.modal-form .loxo-field-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.loxo-application-form-container.modal-form .loxo-gdpr-notice {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin-top: 15px;
    text-align: left;
}

.loxo-application-form-container.modal-form .loxo-gdpr-notice a {
    color: #f47b20;
    text-decoration: none;
}

.loxo-application-form-container.modal-form .loxo-gdpr-notice a:hover {
    text-decoration: underline;
}

/* Form Success and Error States */
.loxo-form-success-container {
    text-align: center;
    padding: 40px 20px;
}

.loxo-success-icon {
    margin-bottom: 20px;
}

.loxo-success-icon svg {
    animation: checkmark 0.6s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.loxo-form-success-container h4 {
    color: #4CAF50;
    font-size: 24px;
    margin-bottom: 15px;
}

.loxo-form-success-container p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.loxo-form-success-container small {
    color: #999;
    font-size: 12px;
}

.loxo-form-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.loxo-form-error strong {
    font-weight: 600;
}

/* Progress Indicator */
.loxo-progress-indicator {
    margin-top: 15px;
    text-align: center;
}

.progress-bar {
    background: #f0f0f0;
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    background: #f47b20;
    height: 100%;
    width: 0%;
    border-radius: 10px;
    animation: progress-fill 2s ease-in-out infinite;
}

@keyframes progress-fill {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.progress-text {
    font-size: 14px;
    color: #666;
}

/* Loading Spinner */
.loading-spinner .spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* File Upload States */
.loxo-file-selected {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
}

.loxo-file-selected .file-name {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.loxo-file-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.loxo-file-remove:hover {
    background: #f5c6cb;
}
