/* Jarvi Jobs Plugin Styles - Matching React Design */

:root {
    --jarvi-primary: #FEF7DF;
    --jarvi-secondary: #233727;
    --jarvi-accent: #B6CCBA;
    --jarvi-text: #2B2E2B;
    --jarvi-border: #E5E7EB;
    --jarvi-shadow: rgba(0, 0, 0, 0.1);
    --jarvi-radius: 16px;
    --jarvi-transition: all 0.3s ease;
}

/* Reset and Base */
.jarvi-jobs-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--jarvi-text);
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

.jarvi-jobs-widget * {
    box-sizing: border-box;
}

/* Hero Section - Full Width with Boxed Content */
.jarvi-jobs-hero {
    /* Default background - can be overridden by Elementor */
    background: linear-gradient(135deg, #233727, #1A504F) !default;
    color: #FEF7DF !default;
    /* Full width hero */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 4rem 0 !default;
    margin-bottom: 2rem;
    overflow: hidden;
}

/* Ensure Elementor can override hero background */
.elementor-widget-jarvi-jobs .jarvi-jobs-hero {
    /* Remove !important to allow Elementor override */
    background: linear-gradient(135deg, #233727, #1A504F);
    color: #FEF7DF;
    padding: 4rem 0;
}

.jarvi-jobs-hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(254, 247, 223, 0.1) 2px, transparent 2px) !default;
    background-size: 50px 50px !default;
    opacity: 0.3;
    pointer-events: none;
}

/* Boxed content container */
.jarvi-jobs-hero-content {
    position: relative;
    z-index: 1;
    /* Boxed width - default, can be overridden by Elementor */
    max-width: 1200px !default;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center !default;
}

/* Ensure Elementor can override hero content */
.elementor-widget-jarvi-jobs .jarvi-jobs-hero-content {
    max-width: 1200px;
    text-align: center;
}

.jarvi-jobs-hero-title {
    font-size: 3rem !default;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: inherit !default;
}

/* Ensure Elementor can override title */
.elementor-widget-jarvi-jobs .jarvi-jobs-hero-title {
    font-size: 3rem;
    color: inherit;
}

.jarvi-jobs-hero-subtitle {
    font-size: 1.25rem !default;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: inherit !default;
}

/* Ensure Elementor can override subtitle */
.elementor-widget-jarvi-jobs .jarvi-jobs-hero-subtitle {
    font-size: 1.25rem;
    color: inherit;
}

.jarvi-jobs-count-highlight {
    color: #D4AF37 !default;
    font-weight: 600;
}

/* Ensure Elementor can override count highlight */
.elementor-widget-jarvi-jobs .jarvi-jobs-count-highlight {
    color: #D4AF37;
}

/* Search Container - Matching React Design */
.jarvi-jobs-search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.jarvi-jobs-search-wrapper {
    position: relative;
    background: white !default;
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    border: 1px solid rgba(182, 204, 186, 0.3) !default;
}

/* Ensure Elementor can override search wrapper */
.elementor-widget-jarvi-jobs .jarvi-jobs-search-wrapper {
    background: white;
    border: 1px solid rgba(182, 204, 186, 0.3);
}

.jarvi-jobs-search-icon {
    position: absolute;
    left: 20px;
    color: #9CA3AF !default;
    z-index: 2;
    pointer-events: none;
}

/* Ensure Elementor can override search icon */
.elementor-widget-jarvi-jobs .jarvi-jobs-search-icon {
    color: #9CA3AF;
}

.jarvi-jobs-search-input {
    flex: 1;
    padding: 16px 20px 16px 50px !default;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    color: var(--jarvi-text);
    background: transparent !default;
    outline: none;
}

/* Ensure Elementor can override search input */
.elementor-widget-jarvi-jobs .jarvi-jobs-search-input {
    padding: 16px 20px 16px 50px;
    background: transparent;
}

.jarvi-jobs-search-input::placeholder {
    color: #9CA3AF !default;
}

/* Ensure Elementor can override placeholder */
.elementor-widget-jarvi-jobs .jarvi-jobs-search-input::placeholder {
    color: #9CA3AF;
}

.jarvi-jobs-clear-filters:hover {
    color: #D4AF37;
}

.jarvi-jobs-apply-filters {
    background: var(--jarvi-secondary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--jarvi-transition);
}

.jarvi-jobs-apply-filters:hover {
    background: #1A504F;
}

/* Results Info - Matching React Design */
.jarvi-jobs-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--jarvi-radius);
    margin-bottom: 24px;
    box-shadow: 0 2px 10px var(--jarvi-shadow);
    border: 1px solid rgba(182, 204, 186, 0.2);
}

.jarvi-jobs-results-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--jarvi-secondary);
}

.jarvi-jobs-results-count svg {
    color: var(--jarvi-accent);
}

.jarvi-jobs-count {
    font-weight: 700;
    color: var(--jarvi-secondary);
}

.jarvi-jobs-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jarvi-jobs-filter-tag {
    background: var(--jarvi-primary);
    color: var(--jarvi-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--jarvi-accent);
}

.jarvi-jobs-filter-tag button {
    background: none;
    border: none;
    color: #DC2626;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

/* Loading State */
.jarvi-jobs-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--jarvi-secondary);
}

.jarvi-jobs-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--jarvi-border);
    border-top: 2px solid var(--jarvi-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* No Results - Matching React Design */
.jarvi-jobs-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--jarvi-radius);
    border: 1px solid rgba(182, 204, 186, 0.2);
}

.jarvi-jobs-no-results-icon {
    width: 64px;
    height: 64px;
    background: var(--jarvi-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--jarvi-secondary);
    border: 1px solid rgba(182, 204, 186, 0.3);
}

.jarvi-jobs-no-results h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--jarvi-secondary);
    margin-bottom: 12px;
}

.jarvi-jobs-no-results p {
    color: var(--jarvi-text);
    margin-bottom: 24px;
    opacity: 0.8;
}

.jarvi-jobs-reset-filters {
    background: var(--jarvi-secondary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--jarvi-transition);
}

.jarvi-jobs-reset-filters:hover {
    background: #1A504F;
    transform: translateY(-1px);
}

/* Grid Layout - Exact React Responsive Behavior */
.jarvi-jobs-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px;
    margin-bottom: 2rem;
    padding: 0 1rem; /* Add padding for better spacing */
}

/* Responsive grid columns - matching React breakpoints */
@media (max-width: 1024px) {
    .jarvi-jobs-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 0 0.5rem;
    }
}

@media (max-width: 768px) {
    .jarvi-jobs-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
        padding: 0;
    }
    
    .jarvi-job-card-header,
    .jarvi-job-card-content,
    .jarvi-job-card-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Job Cards - Exactly Matching React Design */
.jarvi-job-card {
    /* Exact React styling */
    background: rgba(255, 255, 255, 0.6) !default;
    backdrop-filter: blur(10px);
    border-radius: 16px !default;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !default;
    border: 1px solid rgba(182, 204, 186, 0.2) !default;
    transition: all 0.5s ease !default;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Ensure Elementor can override job cards */
.elementor-widget-jarvi-jobs .jarvi-job-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(182, 204, 186, 0.2);
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.jarvi-job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--jarvi-accent), var(--jarvi-secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.jarvi-job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(35, 55, 39, 0.15);
    border-color: rgba(35, 55, 39, 0.2);
}

/* Ensure Elementor can override hover effects */
.elementor-widget-jarvi-jobs .jarvi-job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(35, 55, 39, 0.15);
    border-color: rgba(35, 55, 39, 0.2);
}

/* Disable hover transform when setting is off */
.elementor-widget-jarvi-jobs[data-hover-transform="no"] .jarvi-job-card:hover {
    transform: translateY(0) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    border-color: rgba(182, 204, 186, 0.2) !important;
}

.elementor-widget-jarvi-jobs[data-hover-transform="no"] .jarvi-job-card::before {
    transform: scaleX(0) !important;
}

/* Card Header - Exact React Structure */
.jarvi-job-card-header {
    display: none; /* Hide header since no company name */
}

/* Ensure Elementor can override card header padding */
.elementor-widget-jarvi-jobs .jarvi-job-card-header {
    display: none; /* Hide header since no company name */
}

.jarvi-job-card-company {
    display: flex;
    align-items: center;
    gap: 0px;
    flex: 1;
}

/* Company logo styles removed */

.jarvi-job-company-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.jarvi-job-company-name {
    font-size: 1rem !default;
    font-weight: 600 !default;
    color: #233727 !default;
    margin: 0;
    line-height: 1.2;
    transition: var(--jarvi-transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ensure Elementor can override company name */
.elementor-widget-jarvi-jobs .jarvi-job-company-name {
    font-size: 1rem;
    font-weight: 600;
    color: #233727;
}

.jarvi-job-card:hover .jarvi-job-company-name {
    color: rgba(35, 55, 39, 0.8);
}

/* Card Content - Exact React Structure */
.jarvi-job-card-content {
    padding: 16px 24px !default;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Ensure Elementor can override card content padding */
.elementor-widget-jarvi-jobs .jarvi-job-card-content {
    padding: 16px 24px;
}

.jarvi-job-title {
    font-size: 1.25rem !default;
    font-weight: 700 !default;
    color: #233727 !default;
    margin: 0 0 16px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.25rem;
    transition: var(--jarvi-transition);
}

/* Ensure Elementor can override job title */
.elementor-widget-jarvi-jobs .jarvi-job-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #233727;
}

.jarvi-job-card:hover .jarvi-job-title {
    color: rgba(35, 55, 39, 0.8);
}

/* Job Meta - Exact React Structure */
.jarvi-job-meta {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 16px;
}

.jarvi-job-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem !default;
    color: rgba(43, 46, 43, 0.8) !default;
    opacity: 0.8;
}

/* Ensure Elementor can override job meta */
.elementor-widget-jarvi-jobs .jarvi-job-meta-item {
    font-size: 0.85rem;
    color: rgba(43, 46, 43, 0.8);
}

.jarvi-job-meta-item svg {
    color: #B6CCBA !default;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

/* Ensure Elementor can override meta icons */
.elementor-widget-jarvi-jobs .jarvi-job-meta-item svg {
    color: #B6CCBA;
}

/* Job Description - Exact React Structure */
.jarvi-job-description {
    color: rgba(43, 46, 43, 0.8) !default;
    font-size: 0.9rem !default;
    line-height: 1.5;
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4rem;
    flex: 1;
}

/* Ensure Elementor can override job description */
.elementor-widget-jarvi-jobs .jarvi-job-description {
    color: rgba(43, 46, 43, 0.8);
    font-size: 0.9rem;
}

/* Card Footer - Exact React Structure */
.jarvi-job-card-footer {
    padding: 16px 24px 24px !default;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(182, 204, 186, 0.2);
    flex-shrink: 0;
}

/* Ensure Elementor can override card footer padding */
.elementor-widget-jarvi-jobs .jarvi-job-card-footer {
    padding: 16px 24px 24px;
}

/* View Details Button - Exact React Styling */
.jarvi-job-view-details {
    background: #233727 !default;
    color: #FEF7DF !default;
    border: none;
    padding: 10px 20px !default;
    border-radius: 8px !default;
    font-weight: 500 !default;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--jarvi-transition);
    font-size: 0.9rem;
}

/* Ensure Elementor can override view details button */
.elementor-widget-jarvi-jobs .jarvi-job-view-details {
    background: #233727;
    color: #FEF7DF;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
}

.jarvi-job-view-details:hover {
    background: #1A504F !default;
    transform: translateY(-1px);
}

/* Ensure Elementor can override button hover */
.elementor-widget-jarvi-jobs .jarvi-job-view-details:hover {
    background: #1A504F;
}

.jarvi-job-view-details svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.jarvi-job-view-details:hover svg {
    transform: scale(1.1);
}

/* Status Colors - Matching React Design */
.status-open { 
    background: #DCFCE7; 
    color: #166534; 
    border-color: #BBF7D0;
}
.status-urgent { 
    background: #FEF2F2; 
    color: #DC2626; 
    border-color: #FECACA;
}
.status-closing { 
    background: #FEF3C7; 
    color: #D97706; 
    border-color: #FDE68A;
}
.status-in-progress { 
    background: #DBEAFE; 
    color: #1D4ED8; 
    border-color: #BFDBFE;
}
.status-completed { 
    background: #F3E8FF; 
    color: #7C3AED; 
    border-color: #DDD6FE;
}
.status-closed { 
    background: #F1F5F9; 
    color: #475569; 
    border-color: #CBD5E1;
}
.status-default { 
    background: var(--jarvi-primary); 
    color: var(--jarvi-secondary); 
    border-color: var(--jarvi-accent);
}

/* Pagination - Matching React Design */
.jarvi-jobs-pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.jarvi-jobs-pagination.hidden {
    display: none !important;
}

.jarvi-jobs-pagination-controls {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.6) !default;
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px !default;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(182, 204, 186, 0.3) !default;
    gap: 4px;
}

/* Ensure Elementor can override pagination controls */
.elementor-widget-jarvi-jobs .jarvi-jobs-pagination-controls {
    background: rgba(255, 255, 255, 0.6);
    padding: 8px;
    border: 1px solid rgba(182, 204, 186, 0.3);
}

.jarvi-jobs-page-btn {
    min-width: 40px;
    height: 40px;
    border-radius: 50px;
    border: none;
    background: transparent !default;
    color: #233727 !default;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    font-size: 0.9rem;
}

/* Ensure Elementor can override page buttons */
.elementor-widget-jarvi-jobs .jarvi-jobs-page-btn {
    background: transparent;
    color: #233727;
}

.jarvi-jobs-page-btn:hover,
.jarvi-jobs-page-btn.active {
    background: #233727 !default;
    color: white !default;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(35, 55, 39, 0.3);
}

/* Ensure Elementor can override active/hover states */
.elementor-widget-jarvi-jobs .jarvi-jobs-page-btn:hover,
.elementor-widget-jarvi-jobs .jarvi-jobs-page-btn.active {
    background: #233727;
    color: white;
}

.jarvi-jobs-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.jarvi-jobs-page-btn:disabled:hover {
    background: transparent !important;
    color: #233727 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Modal Styles - Matching React Design */
.jarvi-jobs-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.jarvi-jobs-modal.active {
    display: flex !important;
}

.jarvi-jobs-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.jarvi-jobs-modal-content {
    position: relative;
    background: white;
    border-radius: var(--jarvi-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.jarvi-jobs-modal-header {
    background: linear-gradient(135deg, var(--jarvi-secondary), #1A504F);
    color: white;
    padding: 32px;
    text-align: center;
    position: relative;
}

.jarvi-jobs-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--jarvi-transition);
    z-index: 10001;
    opacity: 1;
    visibility: visible;
}

.jarvi-jobs-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.jarvi-jobs-modal-close svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: currentColor;
}

/* Ensure modal close button is always visible */
.jarvi-jobs-modal-header .jarvi-jobs-modal-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    z-index: 10001 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
/* Modal company logo styles removed */

.jarvi-jobs-modal-company-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.jarvi-jobs-modal-body {
    padding: 32px;
}

.jarvi-jobs-modal-title-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 16px;
}

.jarvi-jobs-modal-job-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--jarvi-secondary);
    margin: 0;
    flex: 1;
    line-height: 1.2;
}

.jarvi-jobs-modal-job-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    border: 1px solid;
}

.jarvi-jobs-modal-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.jarvi-jobs-modal-apply-btn {
    width: 100%;
    max-width: 300px;
    padding: 16px 24px;
    background: var(--jarvi-secondary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--jarvi-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.jarvi-jobs-modal-apply-btn:hover {
    background: #1A504F;
    transform: translateY(-2px);
}

.jarvi-jobs-modal-apply-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.jarvi-jobs-modal-apply-btn:hover svg {
    transform: scale(1.1);
}

/* Visual feedback for no-action buttons */
.jarvi-jobs-modal-apply-btn.clicked {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Ensure Elementor can override apply button styles */
.elementor-widget-jarvi-jobs .jarvi-jobs-modal-apply-btn {
    /* Allow full Elementor customization */
}

.jarvi-jobs-modal-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(254, 247, 223, 0.5), rgba(182, 204, 186, 0.1));
    border-radius: var(--jarvi-radius);
    border: 1px solid rgba(182, 204, 186, 0.2);
}

.jarvi-jobs-modal-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.jarvi-jobs-modal-meta-item svg {
    color: var(--jarvi-secondary);
    flex-shrink: 0;
    margin-top: 2px;
    width: 16px;
    height: 16px;
}

.jarvi-jobs-modal-meta-item .label {
    display: block;
    font-size: 0.8rem;
    color: var(--jarvi-text);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-bottom: 4px;
}

.jarvi-jobs-modal-meta-item .value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--jarvi-secondary);
}

.jarvi-jobs-modal-website {
    color: var(--jarvi-secondary) !important;
    text-decoration: none;
}

.jarvi-jobs-modal-website:hover {
    color: #D4AF37 !important;
    text-decoration: underline;
}

.jarvi-jobs-modal-website-item {
    display: none;
}

.jarvi-jobs-modal-website-item.visible {
    display: flex;
}

.jarvi-jobs-modal-description,
.jarvi-jobs-modal-company-description {
    margin-bottom: 32px;
}

.jarvi-jobs-modal-description h4,
.jarvi-jobs-modal-company-description h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--jarvi-secondary);
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--jarvi-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.jarvi-jobs-modal-description h4::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--jarvi-secondary);
    border-radius: 50%;
}

.jarvi-jobs-modal-company-description h4::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--jarvi-accent);
    border-radius: 50%;
}

.jarvi-jobs-modal-description-content,
.jarvi-jobs-modal-company-description-content {
    line-height: 1.6;
    color: var(--jarvi-text);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--jarvi-radius);
    padding: 24px;
    border: 1px solid rgba(182, 204, 186, 0.2);
}

.jarvi-jobs-modal-description-content p,
.jarvi-jobs-modal-company-description-content p {
    margin-bottom: 16px;
}

.jarvi-jobs-modal-description-content.empty,
.jarvi-jobs-modal-company-description-content.empty {
    text-align: center;
    font-style: italic;
    opacity: 0.8;
    background: linear-gradient(135deg, rgba(254, 247, 223, 0.5), rgba(182, 204, 186, 0.1));
}

/* New Creative Search and Filter Design */
.jarvi-jobs-search-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.jarvi-jobs-search-wrapper {
    position: relative;
    background: white !default;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(182, 204, 186, 0.3) !default;
    min-height: 60px; /* Ensure consistent height */
    width: 100%;
    max-width: none;
}

/* Search Input - Full Width */
.jarvi-jobs-search-section {
    display: flex;
    align-items: center;
    position: relative;
    flex: 2; /* Give more space to search since no status filter */
    min-width: 0;
}

.jarvi-jobs-search-icon {
    position: absolute;
    left: 20px;
    color: #9CA3AF !default;
    z-index: 2;
    pointer-events: none;
    width: 18px;
    height: 18px;
}

.jarvi-jobs-search-input {
    flex: 1;
    padding: 14px 20px 14px 50px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--jarvi-text);
    background: rgba(254, 247, 223, 0.3);
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
    min-height: 48px;
    max-width: none;
    box-sizing: border-box;
    /* Ensure proper input handling and prevent browser interference */
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
    font-family: inherit !important;
    line-height: normal !important;
    /* Prevent autocomplete styling issues */
    -webkit-box-shadow: 0 0 0 1000px rgba(254, 247, 223, 0.3) inset !important;
    -webkit-text-fill-color: var(--jarvi-text) !important;
}

.jarvi-jobs-search-input:focus {
    outline: none;
    background: rgba(254, 247, 223, 0.5);
    box-shadow: 0 0 0 3px rgba(35, 55, 39, 0.1);
    border: 1px solid rgba(35, 55, 39, 0.2) !important;
}

.jarvi-jobs-search-input::placeholder {
    color: #9CA3AF !default;
    opacity: 1;
    /* Ensure placeholder doesn't interfere with value */
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

/* Clear Button Section */
.jarvi-jobs-clear-section {
    flex-shrink: 0;
}

.jarvi-jobs-clear-filters-btn {
    background: #233727;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-height: 48px;
}

.jarvi-jobs-clear-filters-btn:hover {
    background: #1A504F;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(35, 55, 39, 0.3);
}

.jarvi-jobs-clear-filters-btn svg {
    width: 14px;
    height: 14px;
}

/* Improved Responsive Design for Search */
@media (max-width: 1024px) {
    .jarvi-jobs-search-wrapper {
        gap: 12px;
        padding: 10px;
    }
    
    .jarvi-jobs-search-section {
        flex: 1; /* Full width on mobile */
    }
    
    .jarvi-jobs-clear-filters-btn {
        font-size: 0.85rem;
        padding: 10px 16px;
    }
}

@media (max-width: 768px) {
    .jarvi-jobs-search-wrapper {
        flex-direction: column;
        padding: 8px;
        gap: 8px;
        border-radius: 12px;
        align-items: stretch;
    }
    
    .jarvi-jobs-search-section {
        flex: none;
        order: 1;
    }
    
    .jarvi-jobs-clear-section {
        flex: none;
        order: 2;
        align-self: center;
    }
    
    .jarvi-jobs-search-input {
        padding: 12px 16px 12px 40px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    .jarvi-jobs-search-icon {
        left: 16px;
        width: 16px;
        height: 16px;
    }
}
/* Responsive Design - Matching React Breakpoints */
@media (max-width: 480px) {
    .jarvi-jobs-search-wrapper {
        padding: 6px;
    }
    
    .jarvi-jobs-search-input {
        padding: 10px 12px 10px 36px;
        font-size: 0.85rem;
    }
    
    .jarvi-jobs-search-icon {
        left: 12px;
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 1200px) {
    .jarvi-jobs-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .jarvi-jobs-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 0;
    }
    
    .jarvi-jobs-hero-content {
        padding: 0 2rem;
    }
    
    .jarvi-jobs-hero-title {
        font-size: 2.5rem;
    }
    
    .jarvi-jobs-hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .jarvi-jobs-hero {
        padding: 2.5rem 0;
    }
    
    .jarvi-jobs-hero-content {
        padding: 0 1.5rem;
    }
    
    .jarvi-jobs-hero-title {
        font-size: 2rem;
    }
    
    .jarvi-jobs-hero-subtitle {
        font-size: 1rem;
    }
    
    .jarvi-jobs-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0;
    }
    
    .jarvi-jobs-modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
    
    .jarvi-jobs-modal-title-section {
        flex-direction: column;
        text-align: center;
    }
    
    .jarvi-jobs-modal-job-title {
        font-size: 1.5rem;
    }
    
    .jarvi-jobs-modal-meta {
        grid-template-columns: 1fr;
    }
    
    .jarvi-jobs-results-info {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .jarvi-jobs-hero-title {
        font-size: 1.75rem;
    }
    
    .jarvi-jobs-hero-subtitle {
        font-size: 0.95rem;
    }
    
    .jarvi-jobs-hero-content {
        padding: 0 1rem;
    }
    
    .jarvi-jobs-modal-body {
        padding: 20px;
    }
    
    .jarvi-jobs-modal-header {
        padding: 24px 20px;
    }
    
    .jarvi-job-card-header,
    .jarvi-job-card-content,
    .jarvi-job-card-footer {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .jarvi-job-meta-item {
        font-size: 0.8rem;
    }
    
    .jarvi-job-meta-item svg {
        width: 12px;
        height: 12px;
    }
    
    .jarvi-job-company-logo {
        width: 40px;
        height: 40px;
    }
    
    .jarvi-job-company-logo img {
        width: 24px;
        height: 24px;
    }
    
    .jarvi-job-company-logo svg {
        width: 20px;
        height: 20px;
    }
    
    .jarvi-job-title {
        font-size: 1.1rem;
    }
    
    .jarvi-job-company-name {
        font-size: 0.9rem;
    }
    
    .jarvi-jobs-grid {
        padding: 0;
    }
}

/* Print Styles */
@media print {
    .jarvi-jobs-modal,
    .jarvi-job-actions,
    .jarvi-jobs-filters-toggle,
    .jarvi-jobs-pagination {
        display: none !important;
    }
    
    .jarvi-job-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --jarvi-border: #000;
        --jarvi-shadow: rgba(0, 0, 0, 0.3);
    }
    
    .jarvi-job-card {
        border-width: 2px;
    }
    
    .jarvi-job-view-details {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .jarvi-jobs-spinner {
        animation: none;
        border-top-color: transparent;
    }
}

/* Focus Styles for Accessibility */
.jarvi-jobs-search-input:focus,
.jarvi-jobs-filter-select:focus,
.jarvi-job-view-details:focus,
.jarvi-job-action-btn:focus,
.jarvi-jobs-page-btn:focus {
    outline: 2px solid var(--jarvi-secondary);
    outline-offset: 2px;
}

/* Custom Scrollbar */
.jarvi-jobs-modal-content::-webkit-scrollbar {
    width: 8px;
}

.jarvi-jobs-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.jarvi-jobs-modal-content::-webkit-scrollbar-thumb {
    background: var(--jarvi-accent);
    border-radius: 4px;
}

.jarvi-jobs-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--jarvi-secondary);
}