/**
 * JobSøgning Frontend Styles
 * 
 * @package Coachment_JobSøgning
 * @since 1.0.0
 */

/* Cache Analysis Modal */
#jobsoegning-cache-analysis-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: none;
}

.jobsoegning-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.jobsoegning-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 100001;
}

.jobsoegning-modal-header {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f5f5f5;
    border-radius: 8px 8px 0 0;
}

.jobsoegning-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.jobsoegning-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.jobsoegning-modal-close:hover {
    background: #ddd;
    color: #000;
}

.jobsoegning-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

#jobsoegning-analysis-output {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

#jobsoegning-copy-results {
    margin-right: 10px;
}

/* Tabs */
.jobsoegning-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
}

.tab-btn {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #555;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #667eea;
    background: #f0f0f0;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: #fff;
}

/* Cache Analyse Button - skal ikke påvirkes af tab-btn styling */
#jobsoegning-analyze-cache-btn {
    /* Override tab-btn styling */
    padding: 6px 12px !important;
    background: #f6f7f7 !important;
    border: 1px solid #dcdcde !important;
    border-radius: 3px !important;
    border-bottom: 1px solid #dcdcde !important;
    font-size: 13px !important;
    font-weight: normal !important;
    color: #2c3338 !important;
    margin-bottom: 0 !important;
    align-self: center;
}

#jobsoegning-analyze-cache-btn:hover {
    background: #f0f0f1 !important;
    border-color: #8c8f94 !important;
    color: #1d2327 !important;
}

#jobsoegning-analyze-cache-btn:focus {
    border-color: #2271b1 !important;
    box-shadow: 0 0 0 1px #2271b1, 0 0 0 3px rgba(34, 113, 177, 0.1) !important;
}

.tab-content {
    display: none;
}

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

/* ============================================
   STANDARD FILTER BADGES - Base Styles
   ============================================ */

/* Common base class for ALL filter badges */
/* Using unique class names (js- prefix) to avoid conflicts with theme CSS */
/* Force height to be calculated from content, not fixed */
.jobsoegning-dashboard .js-filter-badge,
#jobsoegning-dashboard .js-filter-badge,
.listings-section .js-filter-badge,
.profile-category-filters .js-filter-badge,
.status-filter-badges .js-filter-badge,
.score-filter-badges .js-filter-badge,
.category-badges .js-filter-badge,
.js-filter-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 20px !important;
    background: white !important;
    color: #333 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    min-height: 0 !important;
    max-height: none !important;
    vertical-align: middle !important;
    /* Force height to be calculated from content - use multiple approaches for maximum compatibility */
    height: auto !important;
    height: fit-content !important;
    /* Explicitly set height based on line-height + padding to override any fixed heights */
    height: calc(1.4em + 8px) !important;
}

.jobsoegning-dashboard .js-filter-badge:hover,
#jobsoegning-dashboard .js-filter-badge:hover,
.listings-section .js-filter-badge:hover,
.profile-category-filters .js-filter-badge:hover,
.status-filter-badges .js-filter-badge:hover,
.score-filter-badges .js-filter-badge:hover,
.category-badges .js-filter-badge:hover,
.js-filter-badge:hover {
    background: #f8f9fa !important;
    border-color: #0073aa !important;
    transform: translateY(-1px) !important;
}

.jobsoegning-dashboard .js-filter-badge.active,
#jobsoegning-dashboard .js-filter-badge.active,
.listings-section .js-filter-badge.active,
.profile-category-filters .js-filter-badge.active,
.status-filter-badges .js-filter-badge.active,
.score-filter-badges .js-filter-badge.active,
.category-badges .js-filter-badge.active,
.js-filter-badge.active {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    border-color: #667eea !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
}

/* Count badges inside filter badges */
.js-filter-badge .js-badge-count,
.js-filter-badge .badge-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.js-filter-badge:not(.active) .js-badge-count,
.js-filter-badge:not(.active) .badge-count {
    background: #f8f9fa;
    color: #6c757d;
}

/* ============================================
   Profile Category Filters
   ============================================ */

.profile-category-filters {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.category-filters-label {
    font-weight: 600;
    margin-right: 10px;
    flex-shrink: 0;
}

.category-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Category badges inherit all styles from .filter-badge */

/* Portal Suggestions */
.portal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portal-list li {
    padding: 10px;
    margin-bottom: 8px;
    background: #f9f9f9;
    border-radius: 6px;
}

.suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestion-item {
    padding: 16px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.vote-count {
    padding: 4px 12px;
    background: #667eea;
    color: white;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.suggestion-meta {
    margin-bottom: 12px;
    color: #666;
}

.voted-label {
    color: #4caf50;
    font-weight: 600;
}

/* Dashboard Styles */
.jobsoegning-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.dashboard-header h2 {
    color: white;
    margin-bottom: 15px;
    font-size: 2.5rem;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.dashboard-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
}

/* Statistics Cards */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border: none;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.stat-card h3 {
    margin: 0 0 15px 0;
    color: #6c757d;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1;
}

/* API Key Section */
.api-key-section {
    background: white;
    border: none;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.api-key-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
}

.api-key-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.api-key-section h3::before {
    content: '';
    font-size: 1.2rem;
}

.api-key-container {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: stretch;
}

/* API Key Row - Specific styling for the API key input and buttons */
.api-key-row {
    display: flex !important;
    gap: 10px !important;
    height: 30px;
}

.api-key-row input {
    flex: 1;
    max-width: 420px;
}

.api-key-row button {
    padding: 0 12px;
}

.api-key-container input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: #f8f9fa;
    font-size: 14px;
    transition: all 0.3s ease;
}

.api-key-container input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.api-key-container button {
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 120px;
}

.api-key-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.api-key-container button:active {
    transform: translateY(0);
}

.api-key-help {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

/* Search Input */
#jobsoegning-search-input {
    flex: 1;
    max-width: 500px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#jobsoegning-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#jobsoegning-search-input::placeholder {
    color: #999;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    margin: 0;
    color: #333;
}

#print-listings-button,
#send-all-listings-email-button {
    background: #e0e0e0 !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
}

#print-listings-button:hover,
#send-all-listings-email-button:hover {
    background: #d0d0d0 !important;
    border-color: #bbb !important;
}

#print-listings-button:disabled,
#send-all-listings-email-button:disabled {
    background: #e0e0e0 !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
    opacity: 1 !important;
    cursor: default !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary {
    background: #0073aa;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
}

.btn-secondary {
    background: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e1e1e1;
}

.btn-warning {
    background: #dc3232;
    color: white;
}

.btn-warning:hover {
    background: #a00;
}

.btn-success {
    background: #46b450;
    color: white;
}

.btn-success:hover {
    background: #3a9d42;
}

/* WordPress Button Styling - Standardisering */
.button {
    display: inline-block;
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 3px;
    border: 1px solid;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    vertical-align: top;
}

.button:focus {
    outline: 1px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 1px #2271b1, 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.button:disabled,
.button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

/* Primary Button - WordPress Blue */
.button-primary {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
    text-shadow: none;
}

.button-primary:hover:not(:disabled):not(.disabled) {
    background: #135e96;
    border-color: #135e96;
    color: #fff;
}

.button-primary:focus {
    background: #135e96;
    border-color: #135e96;
    box-shadow: 0 0 0 1px #fff, 0 0 0 3px rgba(34, 113, 177, 0.3);
}

/* Secondary Button - Gray */
.button-secondary {
    background: #f6f7f7;
    border-color: #dcdcde;
    color: #2c3338;
}

.button-secondary:hover:not(:disabled):not(.disabled) {
    background: #f0f0f1;
    border-color: #8c8f94;
    color: #1d2327;
}

.button-secondary:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1, 0 0 0 3px rgba(34, 113, 177, 0.1);
}

/* Link Button - Text only */
.button-link {
    background: transparent;
    border: none;
    color: #2271b1;
    padding: 0;
    box-shadow: none;
    text-decoration: none;
}

.button-link:hover:not(:disabled):not(.disabled) {
    color: #135e96;
    text-decoration: underline;
}

.button-link:focus {
    color: #135e96;
    box-shadow: 0 0 0 1px #2271b1, 0 0 0 3px rgba(34, 113, 177, 0.1);
}

/* Destructive/Delete Button - Red */
.button-link-delete {
    background: transparent;
    border: none;
    color: #b32d2e;
    padding: 0;
    box-shadow: none;
    text-decoration: none;
}

.button-link-delete:hover:not(:disabled):not(.disabled) {
    color: #8a2424;
    text-decoration: underline;
}

.button-link-delete:focus {
    color: #8a2424;
    box-shadow: 0 0 0 1px #b32d2e, 0 0 0 3px rgba(179, 45, 46, 0.1);
}

/* Small Button */
.button-small {
    padding: 4px 8px;
    font-size: 11px;
    line-height: 1.4;
}

/* Button in profile actions */
.profile-actions .button {
    margin-right: 8px;
}

.profile-actions .button:last-child {
    margin-right: 0;
}

/* Profiles Section */
.profiles-section {
    background: white;
    border: none;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.profiles-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fd7e14, #ffc107);
}

.profiles-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.profile-card {
    border: none;
    border-radius: 12px;
    padding: 25px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #fd7e14, #ffc107);
}

.profile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    background: white;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.profile-header h4 {
    margin: 0;
    color: #333;
    flex: 1;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

.profile-actions {
    display: flex;
    gap: 8px;
}

.profile-actions button {
    padding: 8px 12px;
    font-size: 12px;
    border: none;
    border-radius: 6px;
    background: #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.profile-actions button:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

.profile-content {
    font-size: 14px;
}

.profile-words {
    margin-bottom: 15px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.profile-words strong {
    color: #495057;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.profile-stats {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    font-size: 12px;
    color: #6c757d;
}

.profile-stats .stat {
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Listings Section */
.listings-section {
    background: white;
    border: none;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.listings-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #17a2b8, #6f42c1);
}

.listings-filters {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.listings-filters select {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 150px;
}

.listings-filters select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.listings-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.listing-item {
    border: none;
    border-radius: 12px;
    padding: 25px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.listing-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #17a2b8, #6f42c1);
}

.listing-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    background: white;
}

.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.listing-header h4 {
    margin: 0;
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
}

.listing-header h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.listing-header h4 a:hover {
    color: #667eea;
}

.listing-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
}

.status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-not_seen {
    background: linear-gradient(135deg, #e9ecef, #adb5bd);
    color: #495057;
}

.status-reviewed {
    background: linear-gradient(135deg, #d1ecf1, #74b9ff);
    color: #0c5460;
}

.status-applied {
    background: linear-gradient(135deg, #d4edda, #00b894);
    color: #155724;
}

.status-pending {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.status-interview {
    background: linear-gradient(135deg, #cfe2ff, #6ea8fe);
    color: #084298;
}

.status-got_job {
    background: linear-gradient(135deg, #d1e7dd, #198754);
    color: #0a3622;
}

.status-rejected {
    background: linear-gradient(135deg, #f8d7da, #e84393);
    color: #721c24;
}

.status-archived {
    background: linear-gradient(135deg, #e2e3e5, #636e72);
    color: #383d41;
}

.date {
    font-size: 12px;
    color: #6c757d;
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 12px;
}

.portal-badge {
    font-size: 13px !important;
    font-weight: 500 !important;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 10px !important;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    height: fit-content !important;
    height: calc(1.4em + 8px) !important;
}

.profile-badge {
    font-size: 13px !important;
    font-weight: 500 !important;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 4px 10px !important;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    height: fit-content !important;
    height: calc(1.4em + 8px) !important;
}

/* CV Field Selection Buttons */
.add-cv-field-btn {
    transition: all 0.2s ease;
}

.add-cv-field-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-weight: 600;
}

.add-cv-field-btn:active:not(:disabled) {
    transform: translateY(0);
}

/* CV Field Tags */
.cv-field-tag {
    transition: all 0.2s ease;
}

.cv-field-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 115, 170, 0.3);
}

.remove-cv-tag:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50%;
}

/* CV Match Badge */
.match-badge.cv-match {
    background: linear-gradient(135deg, #6f42c1, #e83e8c);
    box-shadow: 0 2px 8px rgba(111, 66, 193, 0.3);
}

.match-badge.cv-match.score-excellent {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.match-badge.cv-match.score-good {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.match-badge.cv-match.score-fair {
    background: linear-gradient(135deg, #fd7e14, #dc3545);
    box-shadow: 0 2px 8px rgba(253, 126, 20, 0.3);
}

.match-badge.cv-match.score-poor {
    background: linear-gradient(135deg, #dc3545, #6f42c1);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.score-badge {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
    padding: 4px 10px !important;
    border-radius: 20px;
    font-size: 13px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    height: fit-content !important;
    height: calc(1.4em + 8px) !important;
}

.score-badge.score-excellent {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.score-badge.score-good {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.score-badge.score-fair {
    background: linear-gradient(135deg, #fd7e14, #dc3545);
    box-shadow: 0 2px 8px rgba(253, 126, 20, 0.3);
}

.score-badge.score-poor {
    background: linear-gradient(135deg, #dc3545, #6f42c1);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.listing-details {
    margin-top: 10px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    font-size: 13px;
    color: #495057;
    border-left: 3px solid #667eea;
}

.listing-details small {
    display: block;
    line-height: 1.4;
}

.listing-details .listing-company {
    margin-top: 4px;
}

/* Contact info buttons - WordPress button styling */
.edit-contact-btn,
.add-contact-btn {
    display: inline-block;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
    vertical-align: middle;
    flex-shrink: 0;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
}

/* Edit contact button - link style */
.edit-contact-btn {
    opacity: 0.7;
    color: #2271b1;
}

.edit-contact-btn:hover,
.edit-contact-btn:focus {
    opacity: 1;
    transform: scale(1.1);
    color: #135e96;
}

/* Add contact button - secondary style */
.add-contact-btn {
    opacity: 1;
}

.add-contact-btn::before {
    content: none !important;
}

.add-contact-btn:hover,
.add-contact-btn:focus {
    transform: scale(1.05);
}

.listing-contact {
    display: inline-block;
}

.listing-contacts {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.listing-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
    gap: 4px;
}

.listing-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 10px;
}

.listing-test-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-start;
}

.send-joblog-btn {
    padding: 4px 10px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    border-radius: 6px;
    border: 1px solid #2271b1;
    background: #f0f6ff;
    color: #1d4ed8;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500 !important;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.08);
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    height: fit-content !important;
    height: calc(1.4em + 8px) !important;
}

.send-joblog-btn:hover,
.send-joblog-btn:focus {
    background: #e0ecff;
    border-color: #1d4ed8;
    outline: none;
    transform: translateY(-1px);
}

.send-joblog-btn--loading {
    cursor: progress;
    opacity: 0.75;
}

.send-joblog-btn--success {
    background: #dcfce7;
    border-color: #16a34a;
    color: #166534;
}

.send-joblog-btn--error {
    background: #fee2e2;
    border-color: #dc2626;
    color: #991b1b;
}

/* Status select in listing-meta */
.listing-meta .status-select {
    padding: 4px 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    background: white !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    height: fit-content !important;
    height: calc(1.4em + 8px) !important;
}

.listing-meta .status-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Dynamic styling based on selected value - using JavaScript to add class */
.listing-meta .status-select.status-not_seen {
    background: linear-gradient(135deg, #e9ecef, #adb5bd);
    color: #495057;
    border-color: #adb5bd;
}

.listing-meta .status-select.status-reviewed {
    background: linear-gradient(135deg, #d1ecf1, #74b9ff);
    color: #0c5460;
    border-color: #74b9ff;
}

.listing-meta .status-select.status-applied {
    background: linear-gradient(135deg, #d4edda, #00b894);
    color: #155724;
    border-color: #00b894;
}

.listing-meta .status-select.status-pending {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border-color: #ffeaa7;
}

.listing-meta .status-select.status-interview {
    background: linear-gradient(135deg, #cfe2ff, #6ea8fe);
    color: #084298;
    border-color: #6ea8fe;
}

.listing-meta .status-select.status-got_job {
    background: linear-gradient(135deg, #d1e7dd, #198754);
    color: #0a3622;
    border-color: #198754;
}

.listing-meta .status-select.status-rejected {
    background: linear-gradient(135deg, #f8d7da, #e84393);
    color: #721c24;
    border-color: #e84393;
}

.listing-meta .status-select.status-archived {
    background: linear-gradient(135deg, #e2e3e5, #636e72);
    color: #383d41;
    border-color: #636e72;
}

.listing-actions select {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background: white;
    font-size: 12px;
    transition: all 0.3s ease;
}

.listing-actions select:focus {
    outline: none;
    border-color: #667eea;
}

.listing-actions button {
    padding: 4px 10px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    border: none;
    border-radius: 6px;
    background: #2271b1;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    height: fit-content !important;
    height: calc(1.4em + 8px) !important;
}

.listing-actions button:hover {
    background: #135e96;
    transform: translateY(-1px);
}

.listing-actions .delete-listing {
    background: #dc3545 !important;
    margin-left: auto;
}

.listing-actions .delete-listing:hover {
    background: #c82333 !important;
}

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

/* Debug: Make sure modal is visible when shown */
.modal.show,
.modal[style*="block"] {
    display: block !important;
}

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

.modal-content {
    background-color: white;
    margin: 3% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 16px 16px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    color: #dc3545;
    background: #f8f9fa;
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.form-group small {
    display: block;
    margin-top: 8px;
    color: #6c757d;
    font-size: 12px;
    font-style: italic;
}

.word-count {
    margin-top: 5px;
    text-align: right;
    font-size: 11px;
    color: #667eea;
    font-weight: 600;
}

.word-count.warning {
    color: #ffc107;
}

.word-count.error {
    color: #dc3545;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #e9ecef;
}

/* Form validation styles */
.form-group input:invalid,
.form-group textarea:invalid {
    border-color: #dc3545;
}

.form-group input:valid,
.form-group textarea:valid {
    border-color: #28a745;
}

.form-group.required label::after {
    content: ' *';
    color: #dc3545;
}

/* Enhanced select styling */
.form-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
    cursor: pointer;
}

/* Form field focus states */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* Form field hover states */
.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: #adb5bd;
}

/* Loading state for form submission */
.form-loading {
    opacity: 0.6;
    pointer-events: none;
}

.form-loading .btn {
    position: relative;
}

.form-loading .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
}

.pagination .page-link {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background: #fff;
}

.pagination .page-link:hover {
    background: #f1f1f1;
}

.pagination .page-link.current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.pagination .page-ellipsis {
    padding: 8px 12px;
    color: #666;
}

/* ============================================
   Status Filter Badges
   ============================================ */

.status-filter-badges {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* Status filter badges inherit all styles from .filter-badge */

/* Status-specific active colors */
/* Using unique class names (js- prefix) to avoid conflicts */
.status-filter-badges .js-status-filter-badge.js-status-not_seen,
.status-filter-badges .js-status-filter-badge.js-status-reviewed,
.status-filter-badges .js-status-filter-badge.js-status-applied,
.status-filter-badges .js-status-filter-badge.js-status-pending,
.status-filter-badges .js-status-filter-badge.js-status-interview,
.status-filter-badges .js-status-filter-badge.js-status-got_job,
.status-filter-badges .js-status-filter-badge.js-status-rejected,
.status-filter-badges .js-status-filter-badge.js-status-archived,
.status-filter-badges .js-status-filter-badge.js-status-all,
.js-status-filter-badge.js-status-not_seen,
.js-status-filter-badge.js-status-reviewed,
.js-status-filter-badge.js-status-applied,
.js-status-filter-badge.js-status-pending,
.js-status-filter-badge.js-status-interview,
.js-status-filter-badge.js-status-got_job,
.js-status-filter-badge.js-status-rejected,
.js-status-filter-badge.js-status-archived,
.js-status-filter-badge.js-status-all {
    padding: 4px 10px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    border: 1px solid #ddd !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    min-height: 0 !important;
    max-height: none !important;
    vertical-align: middle !important;
    height: auto !important;
    height: fit-content !important;
    height: calc(1.4em + 8px) !important;
}

/* Ensure active states also maintain base styles */
.js-status-filter-badge.js-status-not_seen.active,
.js-status-filter-badge.js-status-reviewed.active,
.js-status-filter-badge.js-status-applied.active,
.js-status-filter-badge.js-status-pending.active,
.js-status-filter-badge.js-status-interview.active,
.js-status-filter-badge.js-status-got_job.active,
.js-status-filter-badge.js-status-rejected.active,
.js-status-filter-badge.js-status-archived.active {
    padding: 4px 10px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
}

.js-status-filter-badge.js-status-not_seen.active {
    background: linear-gradient(135deg, #6c757d, #495057) !important;
    border-color: #6c757d !important;
}

.js-status-filter-badge.js-status-reviewed.active {
    background: linear-gradient(135deg, #17a2b8, #138496) !important;
    border-color: #17a2b8 !important;
}

.js-status-filter-badge.js-status-applied.active {
    background: linear-gradient(135deg, #28a745, #1e7e34) !important;
    border-color: #28a745 !important;
}

.js-status-filter-badge.js-status-pending.active {
    background: linear-gradient(135deg, #ffc107, #ff8f00) !important;
    border-color: #ffc107 !important;
}

.js-status-filter-badge.js-status-interview.active {
    background: linear-gradient(135deg, #0d6efd, #0a58ca) !important;
    border-color: #0d6efd !important;
}

.js-status-filter-badge.js-status-got_job.active {
    background: linear-gradient(135deg, #198754, #146c43) !important;
    border-color: #198754 !important;
}

.js-status-filter-badge.js-status-rejected.active {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    border-color: #dc3545 !important;
}

.js-status-filter-badge.js-status-archived.active {
    background: linear-gradient(135deg, #6c757d, #545b62) !important;
    border-color: #6c757d !important;
}

/* Legacy support - map old class to new */
.status-count {
    /* Use .badge-count instead - kept for backwards compatibility */
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .api-key-container {
        flex-direction: column;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .listings-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .listing-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .listing-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Error States */
.error {
    color: #dc3232;
    font-size: 14px;
    margin-top: 5px;
}

.success {
    color: #46b450;
    font-size: 14px;
    margin-top: 5px;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #333;
}

.empty-state p {
    margin-bottom: 20px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-0 {
    margin-top: 0;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Enhanced Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced Buttons */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Enhanced Cards with Icons */
.stat-card[data-icon]::after {
    content: attr(data-icon);
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    opacity: 0.1;
}

/* Success/Error Messages */
.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 500;
    animation: slideInDown 0.3s ease;
}

.message.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-left: 4px solid #28a745;
}

.message.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

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

/* Print Styles */
@media print {
    .btn,
    .profile-actions,
    .listing-actions,
    .modal {
        display: none !important;
    }
    
    .jobsoegning-dashboard {
        max-width: none;
        padding: 0;
        background: white;
        box-shadow: none;
    }
    
    .profile-card,
    .listing-item {
        break-inside: avoid;
        margin-bottom: 10px;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ====================
   MATCH SCORE BADGES
   ==================== */

.match-badge {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-left: 8px;
    white-space: nowrap !important;
    line-height: 1.4 !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    height: fit-content !important;
    height: calc(1.4em + 8px) !important;
}

.match-badge.score-excellent {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.match-badge.score-good {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.match-badge.score-fair {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border: 1px solid #ffeaa7;
}

.match-badge.score-poor {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.listing-item h4 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* ============================================
   Score Filter Badges
   ============================================ */

.score-filter-badges {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* Score filter badges inherit all styles from .filter-badge */

/* Score-specific active colors - using unique js- prefixed classes */
.js-score-filter-badge.js-score-excellent.active,
.js-score-filter-badge.js-score-good.active,
.js-score-filter-badge.js-score-fair.active,
.js-score-filter-badge.js-score-poor.active {
    padding: 4px 10px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
}

.js-score-filter-badge.js-score-excellent.active {
    background: linear-gradient(135deg, #28a745, #1e7e34) !important;
    border-color: #28a745 !important;
}

.js-score-filter-badge.js-score-good.active {
    background: linear-gradient(135deg, #17a2b8, #138496) !important;
    border-color: #17a2b8 !important;
}

.js-score-filter-badge.js-score-fair.active {
    background: linear-gradient(135deg, #ffc107, #ff8f00) !important;
    border-color: #ffc107 !important;
}

.js-score-filter-badge.js-score-poor.active {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    border-color: #dc3545 !important;
}

/* Legacy support - map old class to new */
.score-count {
    /* Use .badge-count instead - kept for backwards compatibility */
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.score-count {
    background: rgba(255,255,255,0.8);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}


/* Joblog defaults form */
.joblog-defaults {
    max-width: 760px;
    margin: 0 auto;
}

.joblog-defaults__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.joblog-defaults__header h2 {
    margin-bottom: 6px;
}

.joblog-defaults__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.joblog-defaults__badge {
    background: #eff6ff;
    border: 1px solid #c7dbff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    color: #1e3a8a;
}

.joblog-defaults__form {
    margin-top: 24px;
    display: grid;
    gap: 24px;
}

.joblog-defaults__fieldset {
    border: 1px solid #dce5f5;
    border-radius: 12px;
    background: #f9fbff;
    padding: 18px 22px;
}

.joblog-defaults__fieldset legend {
    font-weight: 600;
    font-size: 15px;
    padding: 0 6px;
}

.joblog-defaults__options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0 8px 0;
}

.joblog-defaults__option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid #cbd5f5;
    border-radius: 999px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 14px;
}

.joblog-defaults__option input {
    margin: 0;
}

.joblog-defaults__option:hover,
.joblog-defaults__option:focus-within {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.joblog-defaults__row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.joblog-defaults__row input,
.joblog-defaults__row textarea {
    max-width: 260px;
}

.joblog-defaults__row textarea {
    max-width: 100%;
}

.joblog-defaults__row .description {
    font-size: 12px;
    color: #6b7280;
}

.joblog-defaults__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: -8px;
}

.joblog-defaults__status {
    font-size: 13px;
    min-height: 20px;
}

.joblog-defaults__status.is-success {
    color: #166534;
}

.joblog-defaults__status.is-error {
    color: #b91c1c;
}

.joblog-defaults__status.is-info {
    color: #1d4ed8;
}

/* Bulk Actions */
#bulk-actions-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 0px;
    padding: 0px;
}

#bulk-actions-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

#bulk-action-select {
    width: auto !important;
    min-width: 200px !important;
    padding: 4px 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    background: white !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    min-height: 0 !important;
    max-height: none !important;
    vertical-align: middle !important;
    height: auto !important;
    height: fit-content !important;
    height: calc(1.4em + 8px) !important;
}

#bulk-action-execute {
    flex-shrink: 0;
}

#bulk-action-execute:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.listing-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-right: 8px;
}

@media (max-width: 640px) {
    .joblog-defaults__options {
        flex-direction: column;
        align-items: stretch;
    }

    .joblog-defaults__option {
        width: 100%;
        border-radius: 10px;
    }

    .joblog-defaults__row input,
    .joblog-defaults__row textarea {
        max-width: 100%;
    }

    .joblog-defaults__actions {
        flex-direction: column;
        align-items: stretch;
    }
}

