.state-jobs-container {
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    max-width: 100%;
    overflow: hidden;
}

/* Desktop Tab Design */
.desktop-tabs {
    display: flex;
    margin-bottom: 0;
    border-bottom: 3px solid #f8f9fa;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
    padding: 0 20px;
}

.desktop-tabs::-webkit-scrollbar {
    display: none;
}

.state-tab {
    background: transparent;
    border: none;
    padding: 18px 28px;
    cursor: pointer;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 8px 8px 0 0;
    margin: 8px 4px 0 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 15px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.state-tab.active {
    background: white;
    color: #2d3748;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
}

.state-tab:hover:not(.active) {
    color: white;
    background: rgba(255,255,255,0.15);
}

/* Mobile Stacked Tabs Design */
.mobile-stacked-tabs {
    display: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
    padding: 15px 20px;
}

.stacked-tab-row {
    display: flex;
    margin-bottom: 10px;
    gap: 8px;
}

.stacked-tab-row:last-child {
    margin-bottom: 0;
}

.stacked-tab {
    flex: 1;
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 12px 8px;
    cursor: pointer;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 12px;
    text-align: center;
    line-height: 1.3;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stacked-tab.active {
    background: white;
    color: #2d3748;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.stacked-tab:hover:not(.active) {
    background: rgba(255,255,255,0.3);
    color: white;
    transform: translateY(-1px);
}

/* Single tab row for odd numbers */
.single-tab-row .stacked-tab {
    flex: 0 0 auto;
    min-width: 150px;
    margin: 0 auto;
}

.state-content {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.state-content.active {
    display: block;
}

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

/* Modern Table Design with Google-compliant mobile fonts */
.table-container {
    background: white;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    overflow: hidden;
    margin: 0;
    border: 1px solid #e0e0e0;
}

.jobs-results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: white;
    table-layout: fixed;
}

.jobs-results-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.jobs-results-table thead th {
    color: #5f6368;
    font-weight: 600;
    padding: 18px 20px;
    text-align: left;
    font-size: 16px;
    line-height: 24px;
    border-bottom: none;
    text-transform: none;
    letter-spacing: 0.1px;
}

.jobs-results-table thead th:first-child {
    width: 75%;
    padding-left: 24px;
}

.jobs-results-table thead th:last-child {
    width: 25%;
    text-align: center;
}

.jobs-results-table tbody tr {
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
    background: white;
}

.jobs-results-table tbody tr:hover {
    background-color: #f8f9fa;
}

.jobs-results-table tbody tr:last-child {
    border-bottom: none;
}

.jobs-results-table tbody td {
    padding: 18px 20px;
    vertical-align: middle;
    border-bottom: none;
    font-size: 16px;
    line-height: 24px;
}

.jobs-results-table tbody td:first-child {
    padding-left: 24px;
}

.jobs-results-table tbody td:last-child {
    text-align: center;
}

/* Job Title Styling */
.job-title {
    color: #1a73e8;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-title:hover {
    color: #1557b0;
    text-decoration: underline;
}

/* New Badge */
.new-badge {
    background: #ea4335;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}

/* Action Button */
.view-details-btn {
    background: #1a73e8;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
    text-align: center;
    min-width: 60px;
}

.view-details-btn:hover {
    background: #1557b0;
    box-shadow: 0 2px 4px rgba(26,115,232,0.24);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Empty State */
.no-posts {
    text-align: center;
    padding: 48px 24px;
    background: white;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    border: 1px solid #e0e0e0;
    border-top: none;
}

.no-posts h3 {
    color: #5f6368;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 500;
}

.no-posts p {
    color: #5f6368;
    font-size: 16px;
    margin: 0;
}

.no-posts-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Mobile Responsive Design - Google Guidelines Compliant */
@media (max-width: 768px) {
    .state-jobs-container {
        margin: 20px 0;
    }
    
    /* Hide desktop tabs, show mobile stacked tabs */
    .desktop-tabs {
        display: none !important;
    }
    
    .mobile-stacked-tabs {
        display: block !important;
    }
    
    .stacked-tab {
        font-size: 13px;
        padding: 12px 8px;
        min-height: 48px;
    }
    
    /* Google-compliant minimum font sizes for mobile */
    .jobs-results-table thead th {
        padding: 16px 16px;
        font-size: 16px;
        line-height: 24px;
        font-weight: 600;
    }
    
    .jobs-results-table tbody td {
        padding: 16px 16px;
        font-size: 16px;
        line-height: 24px;
    }
    
    .jobs-results-table thead th:first-child,
    .jobs-results-table tbody td:first-child {
        padding-left: 20px;
    }
    
    .job-title {
        font-size: 16px;
        line-height: 24px;
        font-weight: 500;
    }
    
    .view-details-btn {
        padding: 12px 16px;
        font-size: 16px;
        min-width: 60px;
        font-weight: 600;
    }
    
    .new-badge {
        font-size: 12px;
        padding: 3px 8px;
        margin-left: 8px;
    }
}

@media (max-width: 480px) {
    .mobile-stacked-tabs {
        padding: 12px 16px;
    }
    
    .stacked-tab-row {
        margin-bottom: 8px;
        gap: 6px;
    }
    
    .stacked-tab {
        font-size: 14px;
        padding: 12px 6px;
        min-height: 48px;
        border-radius: 6px;
    }
    
    .jobs-results-table thead th,
    .jobs-results-table tbody td {
        padding: 16px 12px;
        font-size: 16px;
        line-height: 24px;
    }
    
    .jobs-results-table thead th:first-child,
    .jobs-results-table tbody td:first-child {
        padding-left: 16px;
    }
    
    .job-title {
        font-size: 16px;
        line-height: 24px;
    }
    
    .view-details-btn {
        padding: 12px 14px;
        font-size: 16px;
        min-width: 55px;
    }
    
    .new-badge {
        font-size: 11px;
        padding: 2px 6px;
        margin-left: 6px;
    }
    
    .no-posts {
        padding: 32px 16px;
    }
    
    .no-posts h3 {
        font-size: 18px;
    }
    
    .no-posts p {
        font-size: 16px;
    }
}

/* Very small screens - still maintaining 16px minimum */
@media (max-width: 360px) {
    .stacked-tab {
        font-size: 14px;
        padding: 10px 4px;
        min-height: 44px;
    }
    
    .stacked-tab-row {
        gap: 4px;
    }
    
    /* Maintain 16px minimum for content */
    .jobs-results-table thead th,
    .jobs-results-table tbody td,
    .job-title,
    .view-details-btn {
        font-size: 16px;
    }
}