/* ==========================================
   🎨 OFFERS-COMPONENTS.CSS - Style komponentów
   ========================================== */

/* ==========================================
   🔘 PRZYCISKI
   ========================================== */

/* Bazowa klasa .btn - używamy globalnego z components.css */
/* Poniżej: specyficzne przyciski dla strony ofert */

/* Warianty przycisków */
.btn-add-offer {
    background: var(--success-color);
    color: white;
    padding: var(--btn-padding-sm); /* 8px 16px - Shape & Sizing System v4.0 */
    border-radius: var(--radius-full); /* pill shape */
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.btn-add-offer:hover {
    background: #38a169;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-panel {
    background: var(--info-color);
    color: white;
    padding: var(--btn-padding-sm); /* 8px 16px - Shape & Sizing System v4.0 */
    border-radius: var(--radius-full); /* pill shape */
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.btn-panel:hover {
    background: #3182ce;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-login {
    background: var(--primary-color);
    color: white;
    padding: var(--btn-padding-sm); /* 8px 16px - Shape & Sizing System v4.0 */
    border-radius: var(--radius-full); /* pill shape */
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

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

.btn-register {
    background: var(--bg-card, white);
    color: var(--accent-color, var(--primary-color));
    border: 2px solid var(--accent-color, var(--primary-color));
    padding: var(--btn-padding-sm); /* 8px 16px - Shape & Sizing System v4.0 */
    border-radius: var(--radius-full); /* pill shape */
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

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

.btn-reset {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--bg-gray);
    padding: var(--badge-padding-sm); /* 4px 8px - Shape & Sizing System v4.0 */
    border-radius: var(--radius-input); /* 4px */
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-reset:hover {
    background: var(--bg-gray);
    color: var(--text-dark);
}

.btn-filter-submit {
    width: 100%;
    padding: var(--space-4); /* 16px - Shape & Sizing System v4.0 */
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-card); /* 12px */
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
}

.btn-filter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.btn-load-more {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 40px auto;
    padding: var(--btn-padding-lg); /* 16px 32px - Shape & Sizing System v4.0 */
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-full); /* pill shape */
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-load-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================
   🎛️ FILTRY
   ========================================== */

/* Nagłówek filtrów */
.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--card-padding-md); /* 20px - Shape & Sizing System v4.0 */
    border-bottom: 1px solid var(--bg-gray);
}

.filters-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-dark);
}

/* Formularz filtrów */
.portal-filters-form {
    padding: var(--card-padding-md); /* 20px - Shape & Sizing System v4.0 */
}

/* Sekcja filtra */
.filter-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--bg-gray);
}

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

.filter-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 600;
}

/* Pole filtra */
.filter-field {
    margin-bottom: 12px;
    position: relative;
}

.filter-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

.filter-field input[type="text"],
.filter-field input[type="number"],
.filter-field select {
    width: 100%;
    padding: var(--input-padding); /* 10px 15px - Shape & Sizing System v4.0 */
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-input); /* 4px */
    font-size: 14px;
    transition: var(--transition);
}

.filter-field input:focus,
.filter-field select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Szybkie filtry (przyciski) */
.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-btn {
    padding: var(--btn-padding-sm); /* 8px 16px - Shape & Sizing System v4.0 */
    background: var(--bg-gray);
    border: 1px solid transparent;
    border-radius: var(--radius-full); /* pill shape */
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.quick-btn:hover {
    background: #e2e8f0;
    border-color: var(--primary-color);
}

.quick-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Zakres wynagrodzeń */
.salary-range {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.salary-range input {
    flex: 1;
}

.salary-range span {
    color: var(--text-muted);
    font-weight: 500;
}

/* Checkboxy */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
}

.checkbox-group label:hover {
    color: var(--primary-color);
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Zaawansowane filtry */
.advanced-filters {
    margin-top: 20px;
}

.advanced-filters summary {
    cursor: pointer;
    padding: var(--space-2); /* 8px - Shape & Sizing System v4.0 */
    background: var(--bg-gray);
    border-radius: var(--radius-input); /* 4px */
    font-weight: 500;
    color: var(--text-dark);
    list-style: none;
    transition: var(--transition);
}

.advanced-filters summary::-webkit-details-marker {
    display: none;
}

.advanced-filters summary:hover {
    background: #e2e8f0;
}

.advanced-filters[open] summary {
    border-radius: var(--radius-input) var(--radius-input) 0 0; /* 4px - Shape & Sizing System v4.0 */
    margin-bottom: 15px;
}

/* Aktywne filtry */
.active-filters-container {
    padding: var(--space-4) var(--card-padding-md); /* 16px 20px - Shape & Sizing System v4.0 */
    border-bottom: 1px solid var(--bg-gray);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-gradient);
    color: white;
    padding: var(--badge-padding-sm); /* 4px 8px - Shape & Sizing System v4.0 */
    border-radius: var(--radius-badge); /* pill shape */
    font-size: 12px;
    font-weight: 500;
}

.filter-tag .remove-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full); /* circle - Shape & Sizing System v4.0 */
    cursor: pointer;
    transition: var(--transition);
}

.filter-tag .remove-filter:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   📋 KARTA OFERTY
   ========================================== */
.offers-list {
    display: grid;
    gap: 20px;
}

.oferta-box {
    background: var(--bg-card, white);
    padding: var(--card-padding-compact); /* 25px - compact-medium */
    border-radius: var(--radius-card); /* 12px */
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: var(--transition-theme);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
    animation: fadeInUp 0.6s ease forwards;
}

.oferta-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #e3f2fd;
}

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

.oferta-tytul {
    font-size: 22px;
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-weight: 600;
}

.firma-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.firma-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-input); /* 4px - Shape & Sizing System v4.0 */
    object-fit: contain;
    background: #f8f9fa;
    padding: 5px; /* Niestandardowa wartość dla logo - pozostawiam */
    border: 1px solid #e9ecef;
}

.firma-nazwa {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 16px;
}

.firma-lokalizacja {
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Tagi informacyjne */
.oferta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.info-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--badge-padding-sm); /* 4px 8px - Shape & Sizing System v4.0 */
    border-radius: var(--radius-badge); /* pill shape - FIX: --tag-border-radius nie istnieje */
    font-size: 13px;
    font-weight: 500;
    vertical-align: middle;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Spójny hover efekt dla wszystkich tagów */
.info-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.tag-uprawnienia {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.tag-umowa {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #e1bee7;
}

.tag-system {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.tag-wynagrodzenie {
    background: #fff3e0;
    color: #f57c00;
    border: 1px solid #ffcc80;
}

/* Footer oferty */
.oferta-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 15px;
}

.oferta-data {
    color: var(--text-light);
    font-size: 13px;
}

.oferta-actions {
    display: flex;
    gap: 10px;
}

.btn-details,
.btn-apply {
    padding: var(--btn-padding-sm); /* 8px 16px - Shape & Sizing System v4.0 */
    border-radius: var(--radius-button); /* 8px - FIX: --tag-border-radius nie istnieje */
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.btn-details {
    background: var(--bg-secondary, #f1f3f4);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: var(--transition-theme);
}

.btn-details:hover {
    background: var(--bg-hover, #e0e0e0);
    transform: translateY(-2px);
}

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

.btn-apply:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Badge odległości */
.distance-badge {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    padding: var(--badge-padding-md); /* 6px 12px - Shape & Sizing System v4.0 */
    border-radius: var(--radius-badge); /* pill shape */
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 3px 10px rgba(116, 185, 255, 0.4);
}

.distance-badge::before {
    content: "🎯";
}

/* ==========================================
   📊 NAGŁÓWEK WYNIKÓW
   ========================================== */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: var(--card-padding-md); /* 20px - Shape & Sizing System v5.0 */
    background: var(--bg-card, white);
    border-radius: var(--radius-card); /* 12px - Shape & Sizing System v4.0 */
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: var(--transition-theme);
}

.results-info {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
}

#liczba-ofert {
    color: var(--primary-color);
    font-weight: 600;
}

/* Kontrolki widoku */
.view-controls {
    display: flex;
    gap: 10px;
}

.tryb-btn {
    padding: var(--btn-padding-sm) /* 8px 16px - Shape & Sizing System v5.0 */;
    border: 2px solid var(--border-color, #e0e0e0);
    background: var(--bg-card, white);
    color: var(--text-primary);
    border-radius: var(--radius-button); /* 8px - FIX: --tag-border-radius nie istnieje */
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.tryb-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tryb-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ==========================================
   🔄 LOADING I STANY
   ========================================== */
.loading-spinner {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-card, white);
    border-radius: var(--radius-card); /* 12px - Shape & Sizing System v4.0 */
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: var(--transition-theme);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: var(--radius-full); /* circle - Shape & Sizing System v4.0 */
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.loading-spinner p {
    color: var(--text-light);
    font-size: 16px;
}

/* End of scroll */
.infinite-end {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-card, white);
    border-radius: var(--radius-card); /* 12px - Shape & Sizing System v4.0 */
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: var(--transition-theme);
}

.infinite-end p {
    font-size: 18px;
    color: var(--text-primary, var(--text-dark));
    margin-bottom: 20px;
}

.btn-back-top {
    background: var(--primary-gradient);
    color: white;
    padding: var(--btn-padding-md); /* 12px 24px - Shape & Sizing System v4.0 */
    border: none;
    border-radius: var(--radius-full); /* pill shape */
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-back-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* Error message */
.error-message {
    text-align: center;
    padding: 40px 20px;
    background: #fee;
    border: 2px solid #fcc;
    border-radius: var(--radius-card); /* 12px - Shape & Sizing System v4.0 */
    color: var(--danger-color);
}

.error-message p {
    margin-bottom: 20px;
    font-size: 16px;
}

.btn-retry {
    background: var(--danger-color);
    color: white;
    padding: var(--btn-padding-sm); /* 8px 16px - Shape & Sizing System v4.0 */
    border: none;
    border-radius: var(--radius-button); /* 8px - FIX: --tag-border-radius nie istnieje */
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-retry:hover {
    background: #e53e3e;
    transform: translateY(-2px);
}

/* Brak ofert */
.no-offers-message {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card, white);
    border-radius: var(--radius-card); /* 12px - Shape & Sizing System v4.0 */
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: var(--transition-theme);
}

.no-offers-message h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.no-offers-message p {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 25px;
}

/* ==========================================
   📄 PAGINACJA
   ========================================== */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    padding: var(--card-padding-md); /* 20px - Shape & Sizing System v5.0 */
    background: var(--bg-card, white);
    border-radius: var(--radius-card); /* 12px - Shape & Sizing System v4.0 */
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: var(--transition-theme);
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-color, #e2e8f0);
    background: var(--bg-card, white);
    color: var(--text-primary);
    border-radius: var(--radius-button); /* 8px - FIX: --tag-border-radius nie istnieje */
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.page-btn:hover {
    background: var(--bg-gray);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn:disabled:hover {
    background: var(--bg-card, white);
    color: var(--text-secondary);
    border-color: var(--border-color, #e2e8f0);
}

.page-dots {
    padding: 0 8px;
    color: var(--text-muted);
}

/* ==========================================
   💡 SEKCJA INFORMACYJNA
   ========================================== */
.info-card {
    text-align: center;
    padding: 20px 15px; /* Custom - Empty state compact padding */
    border-radius: var(--radius-card); /* 12px - Shape & Sizing System v4.0 */
    transition: var(--transition);
}

.info-card:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
}

.info-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.info-card h3 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.info-card p {
    color: var(--text-light);
    line-height: 1.4;
    font-size: 13px;
}

/* ==========================================
   🔍 AUTOUZUPEŁNIANIE MIAST
   ========================================== */
.city-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card, white);
    border: 1px solid var(--border-color, #e2e8f0);
    border-top: none;
    border-radius: 0 0 var(--radius-button) var(--radius-button); /* 8px - Shape & Sizing System v5.0 */
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.ui-autocomplete {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-card, white);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-card); /* 12px - Shape & Sizing System v4.0 */
    box-shadow: var(--shadow-md);
}

.ui-menu-item {
    padding: var(--input-padding) /* 10px 15px - Shape & Sizing System v5.0 */;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.ui-menu-item:last-child {
    border-bottom: none;
}

.ui-state-active,
.ui-state-focus {
    background: var(--bg-gray);
    border: none;
    color: var(--primary-color);
    font-weight: 500;
}

/* ==========================================
   🏙️ AUTOUZUPEŁNIANIE MIAST - STYLE
   ========================================== */

/* Kontener na sugestie */
#miasto-suggestions,
.city-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: none;
    margin-top: -1px;
}

/* Pojedyncza sugestia */
.city-suggestion {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.15s ease;
    font-size: 14px;
    line-height: 1.5;
}

.city-suggestion:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

/* Hover i highlighted state */
.city-suggestion:hover,
.city-suggestion.highlighted {
    background-color: #f3f4f6;
}

/* Nazwa miasta */
.city-suggestion .city-name {
    color: #111827;
    font-weight: 500;
    margin-bottom: 2px;
}

/* Szczegóły (kod pocztowy, województwo) */
.city-suggestion .city-details {
    color: #6b7280;
    font-size: 12px;
    font-weight: 400;
}

/* Input z loading state */
#filtr_miasto.loading {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"%3E%3Ccircle cx="12" cy="12" r="10" stroke="%23e5e7eb" stroke-width="4"%3E%3C/circle%3E%3Cpath fill="%236366f1" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"%3E%3C/path%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px 20px;
    padding-right: 40px;
}

/* Animacja pojawiania się */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.city-suggestions {
    animation: slideDown 0.2s ease-out;
}

/* Dostosowanie stylu inputa w filtrach */
.filter-field input[type="text"]#filtr_miasto {
    font-size: 14px;
    padding: var(--input-padding); /* 10px 15px - Shape & Sizing System v4.0 */
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: var(--radius-input); /* 4px - FIX: --tag-border-radius nie istnieje */
    transition: var(--transition-theme);
    width: 100%;
    box-sizing: border-box;
    background-color: var(--bg-input, #ffffff);
    color: var(--text-primary, #111827);
}

.filter-field input[type="text"]#filtr_miasto:focus {
    outline: none;
    border-color: var(--accent-color, #6366f1);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.filter-field input[type="text"]#filtr_miasto::placeholder {
    color: var(--text-muted, #9ca3af);
}

/* Scrollbar dla listy sugestii */
.city-suggestions::-webkit-scrollbar {
    width: 6px;
}

.city-suggestions::-webkit-scrollbar-track {
    background: #f9fafb;
    border-radius: 0 0 8px 0;
}

.city-suggestions::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px; /* Custom - tiny element (między xs 2px a sm 4px) */
}

.city-suggestions::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Label dla pola lokalizacji */
.filter-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.filter-field label .required {
    color: #ef4444;
    font-weight: 700;
}

/* Responsywność */
@media (max-width: 768px) {
    .city-suggestion {
        padding: 14px 16px;
    }
    
    .city-suggestion .city-name {
        font-size: 15px;
    }
    
    .city-suggestion .city-details {
        font-size: 13px;
    }
}

/* Komunikat "Szukam..." */
.city-suggestion.searching {
    color: #6b7280;
    font-style: italic;
    cursor: default;
    padding: 14px 16px;
}

.city-suggestion.searching:hover {
    background-color: transparent;
}

/* ==========================================
   ✅ CUSTOM CHECKBOXY (jak w formularzu dodawania)
   ========================================== */

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
    user-select: none;
}

.checkbox-label:hover {
    color: var(--primary-color);
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-box {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: var(--radius-input); /* 4px - Shape & Sizing System v5.0 */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: var(--bg-card, white);
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-box {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-box::before {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

.checkbox-label input[type="checkbox"]:focus + .checkbox-box {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Hover efekt */
.checkbox-label:hover .checkbox-box {
    border-color: var(--primary-color);
    transform: scale(1.02);
}

/* Animacja zaznaczania */
.checkbox-label input[type="checkbox"]:checked + .checkbox-box {
    animation: checkboxPulse 0.3s ease-out;
}

@keyframes checkboxPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1.05);
    }
}

/* Nadpisz stare style dla checkbox-group w tej sekcji */
.filter-section .checkbox-group .checkbox-label {
    margin-bottom: 5px;
}

/* Zachowaj kompatybilność z innymi checkboxami */
.checkbox-group label:not(.checkbox-label) {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
    padding: 6px 0;
}

.checkbox-group label:not(.checkbox-label):hover {
    color: var(--primary-color);
}

.checkbox-group label:not(.checkbox-label) input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* ==========================================
   💰 BADGE'Y TYPU WYNAGRODZENIA - UJEDNOLICONE
   ========================================== */

.salary-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: var(--badge-padding-xs); /* 2px 6px - Shape & Sizing System v4.0 */
    border-radius: var(--radius-badge); /* pill shape - FIX: --tag-border-radius nie istnieje */
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: 6px;
    vertical-align: middle;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* Badge dla kwoty netto - zielony */
.salary-type-badge.salary-netto {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: 1px solid #059669;
}

/* Badge dla kwoty brutto - niebieski */
.salary-type-badge.salary-brutto {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: 1px solid #2563eb;
}

/* Spójny hover efekt z innymi tagami */
.salary-type-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* W kontekście tag'a wynagrodzenia */
.tag-wynagrodzenie .salary-type-badge {
    margin-left: 6px;
    font-size: 10px;
    padding: 2px 6px;
}

/* Responsywność */
@media (max-width: 768px) {
    .salary-type-badge {
        font-size: 10px;
        padding: 2px 6px;
        margin-left: 6px;
    }
    
    .tag-wynagrodzenie .salary-type-badge {
        font-size: 9px;
        padding: 1px 4px;
    }
}

/* Animacja pojawiania się */
@keyframes salaryBadgeAppear {
    from {
        opacity: 0;
        transform: translateX(-10px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.salary-type-badge {
    animation: salaryBadgeAppear 0.3s ease-out;
}

/* Tooltip dla wyjaśnienia */
.salary-type-badge[title] {
    cursor: help;
}

/* Dodatkowe style dla lepszej czytelności */
.oferta-box .tag-wynagrodzenie {
    position: relative;
    overflow: visible;
}

/* Jeśli wynagrodzenie jest głównym elementem (większy badge) */
.salary-main .salary-type-badge {
    font-size: 12px;
    padding: 4px 10px;
    margin-left: 10px;
}

/* Wariant dla list compactowych */
.compact-offer .salary-type-badge {
    font-size: 9px;
    padding: 1px 4px;
    margin-left: 4px;
}

/* Dark mode support (jeśli kiedyś będzie potrzebny) */
@media (prefers-color-scheme: dark) {
    .salary-type-badge.salary-netto {
        background: linear-gradient(135deg, #38a169, #2f855a);
    }
    
    .salary-type-badge.salary-brutto {
        background: linear-gradient(135deg, #3182ce, #2c5aa0);
    }
}

* ==========================================
   💰 POPRAWKI WYŚWIETLANIA WYNAGRODZENIA
   ========================================== */

/* Styling dla okresu wypłaty */
.salary-period {
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
    margin-left: 4px;
}

/* W kontekście tag'a wynagrodzenia */
.tag-wynagrodzenie {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.tag-wynagrodzenia .salary-type-badge {
    margin-left: 4px;
    font-size: 9px;
    padding: 1px 4px;
}

/* Responsywność */
@media (max-width: 768px) {
    .salary-type-badge {
        font-size: 9px;
        padding: 1px 4px;
        margin-left: 4px;
    }
    
    .salary-period {
        font-size: 10px;
    }
    
    .tag-wynagrodzenie {
        flex-direction: row;
        align-items: center;
        gap: 6px;
        padding: 8px 12px;
        min-width: 200px;
        flex-wrap: nowrap;
    }
}

/* Animacja pojawiania się */
@keyframes salaryBadgeAppear {
    from {
        opacity: 0;
        transform: translateX(-5px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.salary-type-badge {
    animation: salaryBadgeAppear 0.2s ease-out;
}

/* Zapobieganie łamaniu linii w środku badge'a */
.salary-type-badge {
    white-space: nowrap;
}

/* Style dla kompaktowego widoku */
.compact-salary .salary-type-badge {
    font-size: 8px;
    padding: 1px 3px;
    margin-left: 3px;
}

.compact-salary .salary-period {
    font-size: 9px;
}

/* ==========================================
   ❤️ PRZYCISK ULUBIONYCH
   ========================================== */
.btn-favorite {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-color);
    background: var(--bg-card, white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.btn-favorite:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-favorite.is-favorite {
    animation: heartBeat 0.8s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.btn-favorite:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Pozycjonowanie dla karty oferty */
.oferta-box {
    position: relative;
}

/* Wskaźnik przy ofercie ulubionej */
.oferta-box.has-favorite::before {
    content: '❤️';
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--bg-card, white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-size: 16px;
}

/* Cały tag wynagrodzenia - spójny styl */
.info-tag.tag-wynagrodzenie {
    background: linear-gradient(135deg, #d7bdfe 0%, #d7bdfe 100%);
    border: 1px solid #c7d2fe;
    color: #4c1d95;
    padding: var(--badge-padding-md); /* 6px 12px - Shape & Sizing System v4.0 */
    border-radius: var(--radius-badge); /* pill shape - FIX: --tag-border-radius nie istnieje */
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Alternatywa 2 - subtelny gradient dla każdego */
.info-tag.tag-uprawnienia {
    background: linear-gradient(135deg, #debeff 0%, #debeff 100%);
    color: #4c1d95;
}
.info-tag.tag-system {
    background: linear-gradient(135deg, #e8d2fe 0%, #e8d2fe 100%);
    color: #4c1d95;
}
.info-tag.tag-kierunek {
    background: linear-gradient(135deg, #f2e6ff 0%, #f2e6ff 100%);
    color: #4c1d95;
}

.info-tag.tag-international {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    color: #92400e;
    border: 1px solid #fbbf24;
    font-weight: 600;
}

/* Okres wynagrodzenia */
.salary-period {
    font-size: 13px;
    color: #4c1d95;
    opacity: 0.8;
    font-weight: 400;
    border-left: 1px solid #4c1d95;
    padding-left: 8px;
    margin-left: 4px;
}


/* Specjalnie dla tagów z prawem jazdy */
.info-tag.tag-uprawnienia {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1.2;
}

/* ==========================================
   💡 TOOLTIPY
   ========================================== */
.tooltip-wrapper {
    position: relative;
}

.tooltip {
    visibility: hidden;
    width: 220px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 10px;
    position: absolute;
    z-index: 1001;
    bottom: 125%;
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    line-height: 1.4;
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip-wrapper:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Responsywność dla tooltipów */
@media (max-width: 768px) {
    .tooltip {
        width: 180px;
        margin-left: -90px;
        font-size: 11px;
        padding: 6px 8px;
    }
}

/* ==========================================
   🌙 DARK MODE OVERRIDES - CZYSTE ZMIENNE
   ========================================== */

/* Wszystkie dark mode overrides są teraz w variables.css */
/* Używamy dedykowanych zmiennych zamiast długich selektorów */

/* Przyciski szczegóły - używają zmiennych */
.btn-details {
    background: var(--btn-details-bg);
    color: var(--btn-details-color);
    border-color: var(--btn-details-border);
    box-shadow: var(--btn-details-shadow);
}

.btn-details:hover {
    background: var(--btn-details-hover-bg);
    transform: translateY(-2px);
    box-shadow: var(--btn-details-hover-shadow);
}

/* Checkboxy i inne komponenty */
.checkbox-box {
    background: var(--checkbox-bg);
    color: var(--checkbox-color);
    border-color: var(--checkbox-border);
}

/* Przyciski paginacji */
.page-btn {
    background: var(--page-btn-bg);
    color: var(--page-btn-color);
    border-color: var(--page-btn-border);
}

.page-btn:disabled {
    background: var(--page-btn-disabled-bg);
    color: var(--page-btn-disabled-color);
}

/* Badge wynagrodzenia */
.salary-type-badge.salary-netto {
    background: var(--salary-badge-bg);
    color: var(--salary-badge-color);
    border-color: var(--salary-badge-border);
}

/* Pole filtru miasta */
.filter-field input[type="text"]#filtr_miasto {
    background-color: var(--filter-input-bg);
    color: var(--filter-input-color);
    border-color: var(--filter-input-border);
}

.filter-field input[type="text"]#filtr_miasto::placeholder {
    color: var(--filter-input-placeholder);
}

.filter-field input[type="text"]#filtr_miasto:focus {
    border-color: var(--filter-input-focus-border);
    box-shadow: var(--filter-input-focus-shadow);
}

/* Wszystkie inne komponenty używają standardowych zmiennych */
.oferta-box,
.empty-state,
.error-state,
.loading-state,
.loading-spinner,
.infinite-end,
.no-offers-message,
.pagination-container,
.results-header,
.tryb-btn,
.autocomplete-dropdown,
.autocomplete-list,
.ui-autocomplete,
.city-suggestions,
.btn-favorite {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color);
}