/* ============================================
   UWAGA: Wszystkie klasy .listing-* znajdują się w listings.css
   ============================================ */

.action-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

.action-btn:hover {
    background: #cccccc;
}

/* Dostępność: jednolity focus dla wszystkich przycisków */
[class*="btn"]:focus-visible,
[class*="button"]:focus-visible,
button:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible {
    outline: 2px solid #003d82;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 61, 130, 0.25);
}

.promote-btn {
    background-color: #fcecce;
    color: #b25e09;
}

.promote-btn:hover {
    background-color: #fcdf6b;
}

.refresh-btn {
    background: #7ca5ff;
    color: #ffffff;
}

.refresh-btn:hover {
    background: #437cf8;
}

.refresh-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.edit-btn, .restore-btn {
    background-color: #d3f5e6;
    color: #003153;
}

.edit-btn:hover, .restore-btn:hover {
    background-color: #acfcd9;
}

.delete-btn {
    background-color: #fee2e2;
    color: #dc2626;
}

.delete-btn:hover {
    background-color: #fecaca;
}

/* Listings footer meta details */
.details-row {
    display: flex;
    gap: 16px;
    color: #656565;
    font-size: 0.875rem;
    flex-wrap: wrap;
    overflow: hidden;
}

.detail-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.detail-item svg {
    flex-shrink: 0;
}

.detail-item.saves {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #656565;
}

.detail-item.saves svg {
    width: 16px;
    height: 16px;
}

.detail-item.saves span {
    font-size: 14px;
}

/* System zapisywania ogłoszeń */
.save-listing-btn-container {
    display: inline-flex;
    align-items: center;
    height: 28px;
    margin-top: auto;
    margin-bottom: 0.25rem;
    position: relative;
}

.save-listing-btn-container:empty {
    height: 28px;
    width: 24px;
    margin-right: -0.3125rem;
}

.save-listing-btn {
    background: transparent;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    margin-right: -0.3125rem;
    height: 100%;
    display: flex;
    align-items: center;
}

.save-listing-btn svg {
    width: 20px;
    height: 20px;
    color: #656565;
}

.save-listing-btn polygon {
    fill: white;
    transition: fill 0.2s ease;
}

.save-listing-btn.saved svg,
.save-listing-btn.saved polygon {
    fill: black;
    color: black;
}

.save-listing-btn-text {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    color: black;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
    white-space: nowrap;
}

.save-listing-btn-text::before {
    content: attr(data-save-text);
}

.save-listing-btn.saved~.save-listing-btn-text::before {
    content: attr(data-unsave-text);
}

.save-listing-btn:hover svg {
    transform: scale(1.1);
    color: black;
}

.save-listing-btn-container:hover .save-listing-btn-text {
    opacity: 1;
    visibility: visible;
}

#detail-save-button {
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#detail-save-button svg {
    transition: transform 0.2s ease;
}

#detail-save-button:hover svg {
    transform: scale(1.1);
}

#detail-save-button.saved {
    color: #22313f;
}

/* Info banner */
.info-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem;
    background-color: rgba(0, 61, 130, 0.08);
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.info-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #003153;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.info-button {
    background: none;
    border: none;
    padding: 0;
    color: #003153;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    /* Konkretny rozmiar zamiast inherit */
}

.info-button:hover {
    color: #0B4A73;
    text-decoration: underline;
}

.explanation {
    margin-bottom: 2rem;
    color: #4b5563;
    line-height: 1.6;
}

.benefits-section h4 {
    color: #1a1a1a;
    margin-bottom: 1rem;
}

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

.benefits-list li {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0;
    gap: 10px;
}

.benefits-list li::before {
    content: "✓";
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #f3f4f6;
    border-radius: 50%;
    color: #003153;
    text-align: center;
    line-height: 24px;
    flex-shrink: 0;
}

.benefits-list li>span {
    flex: 1;
    display: block;
    line-height: 1.5;
    text-align: left;
    padding-top: 0.125rem;
}

/* Okna modalne */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease-in-out;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.modal-header h3 {
    margin: 0;
    text-align: center;
    width: 100%;
    /* To jest kluczowe dla wycentrowania */
}

/* Style modalne komunikatów */
.modal.message-modal .modal-content {
    max-width: 300px !important;
    padding: 1.25rem
}

.modal.message-modal .modal-header {
    border: none;
    padding: 0;
    text-align: center;
    justify-content: center;
}

.modal.message-modal .modal-header h3 {
    font-size: 1.2em;
    margin: 0;
}

.modal.message-modal .modal-body {
    text-align: center;
    padding: 0.625rem 0;
}

.modal.message-modal .message-icon {
    margin: 0.9375rem 0;
}

.modal.message-modal .message-text {
    margin: 0.625rem 0;
    font-size: 0.95em;
}

.modal.message-modal .modal-footer {
    padding: 0;
    text-align: center;
    border: none;
    justify-content: end;
    background-color: transparent !important;
}

/* Style modalne sukcesu i błędu */
.modal-icon {
    margin: 0.9375rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.modal-success_message .modal-icon {
    color: #10b981;
}

.modal.modal-error_message .modal-icon {
    color: #dc3545;
}

/* Modal potwierdzenia usunięcia */
.confirmation-modal .modal-content {
    max-width: 550px !important;
}

.confirmation-modal .modal-body {
    text-align: center;
    padding: 1.25rem;
}

.confirmation-modal .modal-header {
    padding: 0.75rem 1.375rem;
}

.confirmation-modal h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.confirmation-modal .delete-message {
    font-size: 1.1rem;
    margin: 1rem 0 8px 0;
}

.confirmation-modal .delete-warning {
    font-weight: bold;
    text-decoration-line: underline;
    color: #222;
    font-size: 0.9375rem;
    margin-bottom: 0.9375rem;
}

.modal-footer {
    padding: 0.75rem 1.375rem;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.modal-footer .btn:only-child,
.modal-footer button:only-child {
    width: 100%;
}

/* Modal "Dodaj bez promowania" - biały przycisk confirm */
#confirmation-modal-confirm_add_without_promotion [data-action="confirm"] {
    background: #fff;
    color: #333;
    border: 1px solid #d1d5db;
}

#confirmation-modal-confirm_add_without_promotion [data-action="confirm"]:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.close-modal:hover {
    color: #374151;
}

/* Modal zgłoszenia naruszenia */
.report-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.report-modal-content {
    position: relative;
    z-index: 10;
    max-width: 500px;
    width: 95%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.report-modal .modal-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #003153 0%, #00263f 100%);
    border-radius: 16px 16px 0 0;
    border-bottom: none;
}

.report-modal .modal-header h3 {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.report-modal .modal-header h3 svg {
    stroke: #fff;
    flex-shrink: 0;
}

.report-modal .close-modal {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.report-modal .close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.report-modal .modal-body {
    padding: 1.5rem;
}

.report-modal .modal-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 1.25rem 0;
}

.report-modal .form-group {
    margin: 0;
}

.report-modal .form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.report-modal .form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.report-modal .form-group textarea:focus {
    outline: none;
    border-color: #003153;
    box-shadow: 0 0 0 3px rgba(0, 49, 83, 0.1);
}

.report-modal .modal-footer {
    background: #f8f9fa;
    border-radius: 0 0 16px 16px;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.report-modal .btn-secondary {
    padding: 0.625rem 1.25rem;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-modal .btn-secondary:hover {
    background: #f1f1f1;
    border-color: #ccc;
}

.report-modal .btn-primary {
    padding: 0.625rem 1.25rem;
    background: #003153;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.report-modal .btn-primary:hover {
    background: #0B4A73;
}

.report-modal .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.report-modal .btn-primary svg {
    stroke: currentColor;
    flex-shrink: 0;
}

/* ============================================
   MODAL KONTAKTOWY
   ============================================ */
.contact-modal-content {
    max-width: 480px;
    width: 100%;
}

.contact-modal .modal-content {
    padding: 0;
}

.contact-modal-header {
    background: linear-gradient(135deg, #003153 0%, #00426e 100%);
    color: #fff;
    padding: 1.25rem 1.5rem;
    border-radius: 12px 12px 0 0;
}

.contact-modal-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.contact-modal-header h3 svg {
    stroke: #fff;
    flex-shrink: 0;
}

.contact-modal-header .close-modal {
    color: rgba(255, 255, 255, 0.8);
}

.contact-modal-header .close-modal:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.contact-modal-body {
    padding: 1.5rem;
}

.contact-modal-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-modal-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.contact-modal-item:hover {
    background: #f0f1f3;
}

.contact-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #003153;
    border-radius: 10px;
    flex-shrink: 0;
}

.contact-modal-icon svg {
    stroke: #fff;
}

.contact-modal-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.contact-modal-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.contact-modal-value {
    font-size: 1rem;
    color: #1a1a1a;
    font-weight: 600;
    word-break: break-word;
}

.contact-modal-link {
    color: #003153;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-modal-link:hover {
    color: #27ae60;
    text-decoration: underline;
}

/* Sekcja email konta autora (widoczna tylko dla admina) */
.contact-modal-admin-info {
    margin-top: 0.25rem;
}

.contact-modal-admin-info .contact-modal-item {
    border: 1px dashed #f0ad4e;
    background: #fef9e7;
}

.contact-modal-admin-info .contact-modal-icon {
    background: linear-gradient(135deg, #f0ad4e 0%, #e67e22 100%);
}

.contact-modal-admin-info .contact-modal-label {
    color: #b8860b;
    font-weight: 600;
}

/* Sekcja CV w modalu kontaktowym */
.contact-modal-cv {
    margin-top: 0.5rem;
}

.cv-divider {
    height: 1px;
    background: #e9ecef;
    margin: 1rem 0;
}

.cv-download-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border: 1px solid #c8e6c9;
    border-radius: 10px;
}

.cv-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.cv-icon svg {
    stroke: #2e7d32;
}

.cv-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.cv-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
}

.cv-filename {
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cv-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.cv-download-btn:hover {
    background: #1b5e20;
    color: #fff;
}

.cv-download-btn svg {
    stroke: currentColor;
}

.candidate-header h4 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.candidate-header h4 a {
    color: #003153;
    text-decoration: none;
    transition: color 0.2s ease;
}

.candidate-header h4 a:hover {
    color: #0B4A73;
    text-decoration: underline;
}

.candidate-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.candidate-industry,
.candidate-location {
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.candidate-job-title {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.candidate-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.candidate-experience {
    color: #6b7280;
}

.candidate-salary {
    color: #003153;
    font-weight: 500;
}

.contract-types {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.contract-badge {
    background: #dbeafe;
    color: #003153;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #bfdbfe;
}

/* Responsywność - zobacz sekcję media queries na końcu pliku */

/* Modal korzyści */
.confirmation-modal.benefits-type {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.confirmation-modal.benefits-type.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

/* Przycisk po prawej dla modalu korzyści */
.confirmation-modal.benefits-type .modal-footer {
    justify-content: flex-end;
    margin-top: 0.3125rem;
}

/* System paginacji */

/* Przyciski kontaktu i lista informacji */
.contact-actions {
    display: grid;
    gap: 12px;
    margin-top: 1.5rem;
    position: relative;
    min-height: 48px;
    transition: min-height 0.3s ease;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.2s;
    border: none;
    width: 100%;
}

.contact-btn svg {
    width: 24px;
    height: 24px;
    transform: scale(1.1);
}

.contact-btn.primary {
    background: #003153;
    color: white;
}

.contact-btn.primary:hover {
    background: #0B4A73;
}

.contact-btn.hidden {
    display: none;
}

/* Sekcja kontaktów */
#contact-details {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1;
    margin: 0;
}

.phone-number.hidden {
    display: none;
}

/* Szczegóły ogłoszenia */
.lst-detail-container {
    margin: 0 auto;
    padding: 0 24px;
}

/* .listing-detail-container - definicja w listings.css */

.description-section {
    background: white;
    border-radius: 8px;
    padding: 1.25rem;
    border: 1px solid #ddd;
    width: 100%;
    box-sizing: border-box;
}

.description-section h3 {
    color: #333;
    font-size: 26px;
    margin-top: 0;
    margin-bottom: 1rem;
}

.description-content {
    color: rgb(0, 47, 52);
    line-height: 1.6;
    overflow-wrap: break-word;
    word-break: break-word;
    /* Łamanie tylko przy słowach dłuższych niż kontener; nie łamie zwykłych słów w środku */
}

/* .listing-info-panel - definicja w listings.css */

.lst-price {
    font-size: 22px;
    color: #003153;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.price-wrapper {
    display: flex;
    align-items: center;
    font-weight: 600;
}

/* Kontener przycisku w widoku szczegółów */
.lst-price .save-listing-btn-container {
    margin: 0;
    height: 28px;
    display: flex;
    align-items: center;
}

/* Specialny tooltip dla widoku szczegółów */
.lst-price .save-listing-btn-container .save-listing-btn-text {
    position: absolute;
    right: 100%;
    /* Niewielki odstęp od przycisku */
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    pointer-events: none;
}

/* .listing-action-buttons - definicja w listings.css */

/* Sam przycisk zapisz w widoku szczegółów */
.lst-price .save-listing-btn {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Przycisk udostępniania */
.share-listing-btn-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 28px;
    gap: 5px;
}

.share-listing-btn {
    background: transparent;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.share-listing-btn svg {
    width: 20px;
    height: 20px;
    color: #656565;
    transition: all 0.2s ease;
}

.share-listing-btn:hover svg {
    transform: scale(1.1);
    color: #003153;
}

.share-listing-btn-text {
    font-size: 12px;
    color: #656565;
    white-space: nowrap;
}

/* Przycisk zgłoszenia naruszenia */
.report-listing-btn-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 28px;
    gap: 5px;
}

.report-listing-btn {
    background: transparent;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.report-listing-btn svg {
    width: 20px;
    height: 20px;
    color: #656565;
    transition: all 0.2s ease;
}

.report-listing-btn:hover svg,
.report-listing-btn:focus-visible svg {
    transform: scale(1.1);
    color: #dc3545;
    /* czerwony akcent dla akcji zgłaszania */
}

.report-listing-btn:focus-visible {
    outline: 2px solid rgba(220, 53, 69, 0.35);
    outline-offset: 2px;
}

.report-listing-btn-text {
    font-size: 12px;
    color: #656565;
    white-space: nowrap;
}

.report-listing-btn-container:hover .report-listing-btn-text {
    color: #dc3545;
}

/* Responsywność przeniesiona na koniec pliku */

/* Dropdown menu dla opcji udostępniania */
.share-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.share-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    transition: background-color 0.2s ease;
}

.share-option:first-child {
    border-radius: 8px 8px 0 0;
}

.share-option:last-child {
    border-radius: 0 0 8px 8px;
}

.share-option:hover {
    background-color: #f9fafb;
}

.share-option[data-platform="facebook"]:hover {
    background-color: #e3f2fd;
    color: #1877f2;
}

.share-option[data-platform="linkedin"]:hover {
    background-color: #e8f4fd;
    color: #0a66c2;
}

.share-option svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.lst-title {
    font-size: 26px;
    font-weight: 600;
    color: #333;
    margin: 1.5rem 0;
    line-height: 1.3;
}

/* Dodaj border tylko do pierwsze listy informacji (Lokalizacja, Data dodania, Kategoria) */
#basic-info {
    border-bottom: 1px solid #ddd;
    /* padding bottom */
    padding: 0 0 20px;
}

/* Styl dla sekcji szczegółów ogłoszenia */
#lst-detail {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
    margin-top: 1.25rem;
}

#lst-detail h2 {
    color: #003153;
    margin-bottom: 1.25rem;
}

#lst-detail p {
    margin-bottom: 0.625rem;
}

#lst-detail .btn {
    margin-top: 1.25rem;
}

/* Stan braku ogłoszeń */
/* Empty state / No listings - używane w moje-ogloszenia, zapisane-ogloszenia */
.no-listings {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.25rem;
}

.no-listings h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px 0;
}

.no-listings p {
    font-size: 1rem;
    color: #6b7280;
    margin: 0 0 20px 0;
}

.add-first-listing-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #003153;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.add-first-listing-btn:hover {
    background-color: #0B4A73;
    transform: translateY(-1px);
}

.add-first-listing-btn svg {
    transition: transform 0.2s ease;
}

.add-first-listing-btn:hover svg {
    transform: scale(1.1);
}

/* Empty state - uniwersalny stan pustej listy */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.empty-state-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    color: #656565;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 1rem 0;
}

/* Licznik zapisanych */
.saved-counter {
    background-color: #003153;
    color: #fff;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    font-size: 0.8em;
    min-width: 20px;
    text-align: center;
}

/* .listings-controls i .listings-controls-left - definicje w listings.css */

/* Przyciski dodawania pierwszego ogłoszenia */
.add-first-listing-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #003153;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.add-first-listing-btn:hover {
    background-color: #0B4A73;
    transform: translateY(-1px);
}

.add-first-listing-btn svg {
    transition: transform 0.2s ease;
}

.add-first-listing-btn:hover svg {
    transform: scale(1.1);
}

/* Sortowanie */
.sorting-options {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
}

.sorting-options label {
    margin-right: 0.625rem;
    font-weight: bold;
}

/* Sekcja pod filtrami wyszukania - sortowanie */
.filter-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.btn-notification {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1rem; /* 12px 16px */
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #656565;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-notification svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.btn-notification:hover {
    background-color: #f3f4f6;
    color: #003153;
    border-color: #003153;
}

.btn-notification:hover svg {
    transform: scale(1.1);
}

.btn-notification.active {
    background-color: #003153;
    color: white;
    border-color: #003153;
}

.btn-notification.active:hover {
    background-color: #0B4A73;
    border-color: #0B4A73;
}

/* Panel admina */
.admin-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    margin-top: 1.5rem;
}

/* Sidebar nawigacji */
.admin-sidebar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.admin-nav {
    padding: 1rem;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #4b5563;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    margin-bottom: 0.25rem;
}

.admin-nav-item:hover {
    background: #f3f4f6;
}

.admin-nav-item.active {
    background: #003153;
    color: white;
}

.admin-table .btn.active {
    background-color: #003153;
    color: white;
}

.admin-table .btn {
    margin-right: 0.3125rem;
}

/* Style dla tabeli danych */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.25rem;
    font-size: 0.9em;
}

/* Zmiana kursora dla posortowanych nagłówków */
th[data-sort-direction] {
    cursor: pointer;
}

.admin-controls .filter-buttons {
    display: flex;
    gap: 10px;
}

.admin-controls .search-box {
    margin-bottom: 0.9375rem;
    /* Dodany margines dolny */
}

/* Style dla ogłoszeń w panelu administratora */
#adminListingsList .listing {
    /* Dodaj inne style specyficzne dla admina, jeśli potrzebne */
    margin-bottom: 1.25rem;
    /* Dodaj odstęp między ogłoszeniami */
}

/* Główna zawartość */
.content-wrapper {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-panel {
    display: none;
}

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

.panel-header {
    margin-bottom: 1.5rem;
}

.panel-header h2 {
    margin: 0;
    color: #22313f;
    font-size: 1.5em;
}

/* Tabele */
.table-wrapper {
    margin-top: 1rem;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.25rem;
    font-size: 0.9em;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.data-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #4b5563;
}

/* Responsywność - wszystkie media queries przeniesione na koniec pliku */

#lst-detail,
.lst-detail-container {
    overflow-x: hidden;
    /* uniemożliwia poziomy scroll */
    box-sizing: border-box;
}

/* .listing-detail-container, .listing-link - definicje w listings.css */

/* ============================================
   PAGINATION COMPONENT (Unified)
   ============================================ */

.pagination-container {
    display: flex;
    justify-content: center;
}

.pagination-container:empty {
    margin: 0;
}

.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 1.5rem 0;
}

.pagination-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
    text-decoration: none;
}

.pagination-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.pagination-btn.active {
    background: #003153;
    color: white;
    border-color: #003153;
}

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

/* ============================================
   SEARCH BOX COMPONENT (Unified)
   ============================================ */

.search-box {
    position: relative;
    min-width: 300px;
}

.search-box svg {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #6b7280;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem; /*12px 16px 12px 40px*/
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.search-box input:focus {
    outline: none;
    border-color: #003153;
    box-shadow: 0 0 0 3px rgba(0, 49, 83, 0.1);
}

.search-box input::placeholder {
    color: #9ca3af;
}

/* ============================================
   STATUS BADGES (Unified)
   ============================================ */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-inactive {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-banned {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ============================================
   BREADCRUMBS COMPONENT
   ============================================ */

.breadcrumb-nav {
    margin-bottom: 1rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    padding: 1rem 1.5rem;
    margin: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-item a {
    color: #003153;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.breadcrumb-item a:hover {
    color: #0B4A73;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #213445;
    font-weight: 600;
}

.breadcrumb-item svg,
.breadcrumb-item i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Breadcrumbs dla strony szczegółów ogłoszenia */
.listing-breadcrumb {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
}

.listing-breadcrumb .breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.listing-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    color: #6c757d;
    padding: 0 0.5rem;
    font-size: 1rem;
}

.listing-breadcrumb .breadcrumb-item a {
    color: #003153;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s ease;
}

.listing-breadcrumb .breadcrumb-item a:hover {
    color: #0B4A73;
    text-decoration: none;
}

.listing-breadcrumb .breadcrumb-item a svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.listing-breadcrumb .breadcrumb-item.active span {
    color: #6c757d;
    font-weight: 400;
}

/* Responsywność - zobacz sekcję media queries na końcu pliku */

/* ============================================
   LOCATION AUTOCOMPLETE COMPONENT
   ============================================ */

.location-autocomplete {
    position: relative;
    width: 100%;
}

.location-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.location-input:focus {
    outline: none;
    border-color: #003153;
    box-shadow: 0 0 0 3px rgba(0, 49, 83, 0.1);
}

.location-input::placeholder {
    color: #6c757d;
}

.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.location-suggestions.active {
    display: block;
}

.location-suggestion {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.location-suggestion:last-child {
    border-bottom: none;
}

.location-separator {
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: default;
    user-select: none;
}

.location-separator:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.location-suggestion:hover,
.location-suggestion.highlighted {
    background-color: #f8f9fa;
}

.location-suggestion.highlighted {
    background-color: #e3f2fd;
}

.city-name {
    font-weight: 500;
    color: #213445;
    font-size: 15px;
    line-height: 1.3;
}

.city-meta {
    font-size: 13px;
    color: #6c757d;
    font-style: italic;
    line-height: 1.2;
}

.location-autocomplete.loading .location-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 11-6.219-8.56'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    animation: spin 1s linear infinite;
}

.location-autocomplete.error .location-input {
    border-color: #dc3545;
}

.location-autocomplete.error .location-input:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Responsywność - zobacz sekcję media queries na końcu pliku */

/* ============================================
   DISTANCE FILTER COMPONENT
   ============================================ */

.distance-badge {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.search-results-header {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    border-left: 4px solid #007bff;
}

.search-results-header h3 {
    margin: 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.filter-group select[name="distance"] {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 14px;
    color: #495057;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.filter-group select[name="distance"]:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Responsywność - zobacz sekcję media queries na końcu pliku */

/* ============================================
   BUTTON MULTI-SELECT COMPONENT
   ============================================ */

.btn-multi-select {
    position: relative;
    width: 100%;
    z-index: 10;
}

.btn-multi-select.active {
    z-index: 1001;
}

.btn-multi-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0.625rem 1rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #003153;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    min-height: 44px;
    box-sizing: border-box;
    position: relative;
}

.btn-multi-trigger:hover {
    background: #F5F7FA;
    color: #00263f;
}

.btn-multi-select.active .btn-multi-trigger,
.btn-multi-trigger:focus {
    outline: none;
    background: #F5F7FA;
    color: #00263f;
}

.btn-multi-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.btn-multi-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    background: linear-gradient(135deg, #003153 0%, #00263f 100%);
    color: white;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0, 49, 83, 0.25);
}

.btn-multi-arrow {
    font-size: 10px;
    color: #003153;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: auto;
    display: inline-block;
}

.btn-multi-select.active .btn-multi-arrow {
    transform: rotate(180deg);
    color: #00263f;
}

.btn-multi-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    min-width: 280px;
    max-width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    display: none;
    overflow: hidden;
    animation: slideDown 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-multi-dropdown.active {
    display: flex;
    flex-direction: column;
}

.btn-multi-search {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.btn-multi-search input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

.btn-multi-search input:focus {
    outline: none;
    border-color: #003153;
    box-shadow: 0 0 0 2px rgba(0, 49, 83, 0.1);
}

.btn-multi-options {
    max-height: 280px;
    overflow-y: auto;
    padding: 0.25rem 0;
}

.btn-multi-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.6875rem 1rem;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 14px;
    color: #374151;
    border-left: 3px solid transparent;
}

.btn-multi-option:hover {
    background: #f8f9fa;
    border-left-color: #e5e7eb;
}

.btn-multi-option.selected {
    background: #F5F7FA;
    color: #003153;
    font-weight: 600;
    border-left-color: #003153;
}

.btn-multi-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 5px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
}

.btn-multi-option:hover .btn-multi-checkbox {
    border-color: #9ca3af;
}

.btn-multi-option.selected .btn-multi-checkbox {
    background: linear-gradient(135deg, #003153 0%, #00263f 100%);
    border-color: #003153;
    box-shadow: 0 2px 4px rgba(0, 49, 83, 0.2);
}

.btn-multi-option.selected .btn-multi-checkbox::after {
    content: '✓';
    position: absolute;
    top: -1px;
    left: 4px;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.btn-multi-clear {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-top: 1px solid #e5e7eb;
    background: #fafafa;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-multi-clear:hover {
    background: #f3f4f6;
    color: #374151;
}

.btn-multi-empty {
    padding: 1.25rem;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

.btn-multi-options::-webkit-scrollbar {
    width: 8px;
}

.btn-multi-options::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.btn-multi-options::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.btn-multi-options::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Responsywność - zobacz sekcję media queries na końcu pliku */

/* ============================================
   ALERTS & NOTIFICATIONS
   ============================================ */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.3s ease-out;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
}

.alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 0.125rem;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
}

.alert-message {
    margin: 0;
    opacity: 0.9;
}

.alert-success {
    background: rgba(0, 200, 81, 0.05);
    color: #10b981;
    border-color: rgba(0, 200, 81, 0.2);
}

.alert-success::before {
    background: #10b981;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.05);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.2);
}

.alert-warning::before {
    background: #f59e0b;
}

.alert-error,
.alert-danger {
    background: rgba(239, 68, 68, 0.05);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.alert-error::before,
.alert-danger::before {
    background: #ef4444;
}

.alert-info {
    background: rgba(59, 130, 246, 0.05);
    color: #003153;
    border-color: rgba(59, 130, 246, 0.2);
}

.alert-info::before {
    background: #003153;
}

.alert-dismissible {
    padding-right: 3rem;
}

.alert-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: currentColor;
    opacity: 0.6;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.alert-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

.alert-close svg {
    width: 16px;
    height: 16px;
}

.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    pointer-events: auto;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.toast-success::before {
    background: #10b981;
}

.toast-warning::before {
    background: #f59e0b;
}

.toast-error::before {
    background: #ef4444;
}

.toast-info::before {
    background: #003153;
}

.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 0.125rem;
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-warning .toast-icon {
    color: #f59e0b;
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-info .toast-icon {
    color: #003153;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: #213445;
    font-size: 0.875rem;
}

.toast-message {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #213445;
    background: #f9fafb;
}

.toast-close svg {
    width: 16px;
    height: 16px;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    transition: width linear;
}

.form-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    border: 1px solid transparent;
}

.form-message-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.form-message-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.form-message svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Responsywność - zobacz sekcję media queries na końcu pliku */

/* ========================================
   CATEGORY SELECTOR MODAL
   ======================================== */
.category-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.category-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 95vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

.category-modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    flex-shrink: 0;
}

.category-modal-header h2 {
    margin: 0;
    color: #003d82;
    font-size: 1.5rem;
    font-weight: 600;
}

.category-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.category-modal-close:hover {
    background: #e0e0e0;
    color: #003d82;
}

.category-modal-body {
    padding: 0;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* Search Bar */
.category-search-container {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    flex-shrink: 0;
}

.category-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.category-search-input:focus {
    outline: none;
    border-color: #003d82;
}

.category-search-input::placeholder {
    color: #999;
}

/* Category Grid (Step 1) */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem 1rem 2rem 1rem;
}

.category-tile {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-tile:hover {
    border-color: #003d82;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 61, 130, 0.1);
}

.category-tile.selected {
    border-color: #003d82;
    background: #f0f4ff;
}

.category-tile-name {
    font-weight: 600;
    color: #213445;
    font-size: 0.95rem;
    line-height: 1.3;
}

/* Two Column Layout (Step 2) */
.category-two-column {
    display: none;
    height: 400px;
}

.category-two-column.show {
    display: flex;
}

/* ========== 2-POZIOMOWA STRUKTURA - NOWE STYLE ========== */

/* Category List View (Krok 1 - Lista kategorii) */
.category-list-view {
    padding: 1rem;
    /* Scroll jest obsługiwany przez .category-modal-body */
}

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

.category-main-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-main-item:hover {
    background: #f8f9fa;
    padding-left: 1.8rem;
}

.category-main-item .category-item-arrow {
    color: #999;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.category-main-item:hover .category-item-arrow {
    transform: translateX(5px);
    color: #003d82;
}

/* Sub-positions View (Krok 2 - Lista sub-pozycji) */
.category-subpositions-view {
    padding: 1rem;
    /* Scroll jest obsługiwany przez .category-modal-body */
}

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

.category-sub-item {
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-sub-item:hover {
    background: #e8f4f8;
    padding-left: 1.8rem;
    border-left: 3px solid #003d82;
}

.category-sub-item .category-item-name {
    color: #2c3e50;
}

.category-sub-item:hover .category-item-name {
    color: #003d82;
    font-weight: 500;
}

/* ========== LOADING STATE ========== */

.category-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    min-height: 300px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #003d82;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.category-loading p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* ========== ACCESSIBILITY - FOCUS STATES ========== */

/* Focus dla keyboard navigation */
.category-main-item:focus,
.category-sub-item:focus {
    outline: 2px solid #003d82;
    outline-offset: 2px;
    background: #f8f9fa;
}

.category-main-item:focus-visible,
.category-sub-item:focus-visible {
    outline: 3px solid #003d82;
    outline-offset: 3px;
}

.search-result-item:focus {
    outline: 2px solid #003d82;
    outline-offset: 2px;
    background: #f0f8ff;
}

/* Focus dla przycisków */
.category-modal-close:focus {
    outline: 2px solid #003d82;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 61, 130, 0.1);
}

/* Focus dla search input */
.category-search-input:focus {
    outline: 2px solid #003d82;
    outline-offset: 0;
    border-color: #003d82;
    box-shadow: 0 0 0 3px rgba(0, 61, 130, 0.1);
}

.category-column {
    flex: 1;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
}

.category-column:last-child {
    border-right: none;
}

.category-column-header {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
    color: #003d82;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.category-list-item {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-list-item:hover {
    background: #f8f9fa;
}

.category-list-item.selected {
    background: #f0f4ff;
    color: #003d82;
    font-weight: 500;
}

.category-list-item.has-children::after {
    content: '›';
    color: #999;
    font-size: 1.2rem;
}

.category-item-name {
    font-size: 0.9rem;
    color: #213445;
}

.category-list-item.selected .category-item-name {
    color: #003d82;
}

/* Search Results */
.search-results {
    display: none;
    padding: 1rem 2rem;
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-name {
    font-weight: 500;
    color: #213445;
    margin-bottom: 0.25rem;
}

.search-result-path {
    font-size: 0.8rem;
    color: #666;
}

/* Modal Footer - USUNIĘTY */

/* Breadcrumb Navigation */
.category-breadcrumb {
    padding: 1rem 2rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-breadcrumb.show {
    display: flex;
}

.breadcrumb-back-btn {
    padding: 0.5rem 1rem;
    background: #003153;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.breadcrumb-back-btn:hover {
    background: #0B4A73;
    transform: translateX(-2px);
}

.breadcrumb-back-btn i {
    font-size: 0.75rem;
}

.breadcrumb-separator {
    color: #999;
    font-size: 1rem;
}

.breadcrumb-item {
    display: inline-block;
    color: #666;
    font-size: 0.9rem;
}

.breadcrumb-item:hover {
    text-decoration: underline;
}

.breadcrumb-item:last-child::after {
    display: none;
}

.breadcrumb-item:last-child {
    color: #666;
    cursor: default;
}

.breadcrumb-item:last-child:hover {
    text-decoration: none;
}

/* Category Selector Button */
.category-selector-container {
    position: relative;
}

.category-selector-btn {
    width: 100%;
    text-align: left;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.category-selector-btn:hover {
    border-color: #003d82;
}

.category-selector-btn:focus {
    outline: none;
    border-color: #003d82;
    box-shadow: 0 0 0 3px rgba(0, 61, 130, 0.1);
}

.category-selector-text {
    color: #213445;
    flex: 1;
}

.category-selector-text.placeholder {
    color: #999;
}

.category-selector-text.selected {
    color: #003d82;
    font-weight: 500;
}

.category-selector-arrow {
    color: #666;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.category-selector-btn.active .category-selector-arrow {
    transform: rotate(180deg);
}

/* Color variants for different macro-groups */
.category-tile[data-group="it-i-technologie"] {
    border-color: #003d82;
}

.category-tile[data-group="it-i-technologie"]:hover,
.category-tile[data-group="it-i-technologie"].selected {
    background: linear-gradient(135deg, #f0f4ff 0%, #e6f0ff 100%);
}

.category-tile[data-group="finanse-i-prawo"] {
    border-color: #0056b3;
}

.category-tile[data-group="finanse-i-prawo"]:hover,
.category-tile[data-group="finanse-i-prawo"].selected {
    background: linear-gradient(135deg, #f0f6ff 0%, #e0f0ff 100%);
}

.category-tile[data-group="produkcja-i-przemysl"] {
    border-color: #27ae60;
}

.category-tile[data-group="produkcja-i-przemysl"]:hover,
.category-tile[data-group="produkcja-i-przemysl"].selected {
    background: linear-gradient(135deg, #f0fff4 0%, #e6ffe6 100%);
}

/* ============================================
   BADGE COMPONENT - Unified
   Używane w: user-listings, team/dashboard, agency
   ============================================ */

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

/* ============================================
   STATISTICS CARDS - Unified Component
   Używane w: team/dashboard.ejs, admin/panel.ejs
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    gap: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Ogólne klasy stat-* (używane globalnie w dla-zespolow.ejs, ustawienia.ejs, raporty.ejs) */
.stat-icon {
    width: 48px;
    height: 48px;
    background: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #003d82;
    flex-shrink: 0;
    font-size: 24px;
}

.stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #003d82;
}

.stat-subtitle {
    font-size: 12px;
    color: #999;
    margin-top: 0.25rem;
}

/* Modal braku dostępu (#noAccessModal) */
#noAccessModal .btn-primary:hover {
    background: #0B4A73;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 49, 83, 0.25);
}

#closeNoAccessModal:hover {
    color: #003153;
    transform: translateY(-1px);
    text-decoration: underline;
}

/* Modal limitu ogłoszeń (#listingLimitModal) */
#listingLimitModal .btn-primary:hover {
    background: #0B4A73;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 49, 83, 0.25);
}

#closeListingLimitModal:hover {
    color: #003153;
    text-decoration: underline;
}

/* Responsywność dla .stats-grid/.stat-card i ogólnych klas stat-* */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-value {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        gap: 12px;
    }

    .stat-card {
        padding: 1rem;
        gap: 12px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .stat-value {
        font-size: 22px;
    }

    .stat-label {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 0.875rem;
        gap: 10px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-card .stat-subtitle {
        font-size: 13px;
    }
}

/* ============================================
   INFO MODAL - modal informacyjny
   Nadpisuje .modal.message-modal .modal-content (max-width: 300px !important)
   ============================================ */
#info-modal-custom.modal .info-modal-content {
    max-width: 420px !important;
    width: 90%;
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 49, 83, 0.2);
    animation: infoModalSlideIn 0.3s ease-out;
}

@keyframes infoModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#info-modal-custom .info-modal-header {
    padding: 2rem 2rem 0.5rem;
    text-align: center;
    border-bottom: none;
}

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

#info-modal-custom .info-modal-body {
    text-align: center;
    padding: 1rem 2.5rem 2rem;
}

#info-modal-custom .info-modal-icon {
    margin-bottom: 1.5rem;
}

#info-modal-custom .info-modal-message {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

#info-modal-custom .info-modal-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0 2rem 2rem;
    border-top: none;
}

#info-modal-custom.modal .info-modal-footer .btn {
    padding: 0.75rem 1.75rem !important;
    font-size: 1rem !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    min-height: 44px !important;
    height: auto !important;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
}

#info-modal-custom .info-modal-footer .btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: none;
}

#info-modal-custom .info-modal-footer .btn-secondary:hover {
    background: #e0e0e0;
}

#info-modal-custom .info-modal-footer .btn-primary {
    background: #F39C12;
    color: white;
    border: none;
}

#info-modal-custom .info-modal-footer .btn-primary:hover {
    background: #e08c0e;
    transform: translateY(-1px);
}

/* ============================================
   MEDIA QUERIES - UPORZĄDKOWANE WEDŁUG BREAKPOINTÓW
   ============================================ */

/* 992px - Tablet landscape */
@media (max-width: 992px) {
    /* Responsive styles dla .listing-* przeniesione do listings.css */

    .save-listing-btn-container {
        margin-bottom: 0;
        order: 0;
        height: auto;
    }

    .details-row {
        flex-wrap: wrap;
        gap: 12px;
    }

    .description-section {
        order: 1;
    }

    #basic-info {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        justify-content: flex-start;
    }

    #basic-info .info-item {
        flex: 0 1 auto;
        min-width: 0;
        margin-bottom: 0;
    }

    .contact-actions {
        display: flex;
        justify-content: center;
        margin-top: 0.75rem;
    }

    .filter-buttons {
        flex-wrap: wrap;
        gap: 6px;
    }

    .admin-layout {
        grid-template-columns: 1fr;
        gap: 0px;
    }

    .admin-sidebar {
        width: 100%;
        margin-bottom: 1.25rem;
    }

    .admin-nav {
        padding: 0.75rem;
    }

    .admin-nav-item {
        padding: 0.625rem 0.75rem;
        font-size: 0.95em;
    }

    .info-banner {
        padding: 0.75rem;
        gap: 7.5px;
        margin-bottom: 1rem;
    }

    .info-button {
        font-size: 14px;
    }

    /* Info modal - responsywność 992px */
    #info-modal-custom.modal .info-modal-content {
        width: 88%;
    }

    /* Bazowe modale - responsywność 992px */
    .modal-content {
        max-width: 90%;
    }

    .report-modal .modal-content,
    .report-modal-content {
        width: 90%;
        max-width: 480px;
    }

    .confirmation-modal .modal-content {
        max-width: 90%;
    }

    .btn-notification {
        padding: 0.625rem 0.875rem; /* 10px 14px */
        font-size: 14px;
    }

    .search-box input {
        padding: 0.625rem 0.875rem 0.625rem 2.25rem; /* 10px 14px 10px 36px */
    }
}

/* 768px - Tablet portrait */
@media (max-width: 768px) {

    /* No listings content responsywność */
    .no-listings-content {
        padding: 2.5rem 6.25rem;
    }

    .candidate-meta {
        flex-direction: column;
        gap: 8px;
    }

    .candidate-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Responsive styles dla .listing-* przeniesione do listings.css */

    .details-row {
        gap: 8px;
    }

    .detail-item {
        flex-basis: auto;
        margin-right: 0.625rem;
    }

    .action-btn {
        padding: 0.5rem 0.875rem;
        font-size: 14px;
        gap: 6px;
        min-height: 44px;
        box-sizing: border-box;
    }

    .search-box {
        width: 100%;
    }

    .listings-controls {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .btn-notification {
        order: -1;
        justify-content: center;
    }

    .filter-buttons {
        width: 100%;
        justify-content: center;
        gap: 5px;
    }

    .filter-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        margin-bottom: 0.5rem;
    }

    .sorting-options {
        width: 100%;
        margin-bottom: 0;
    }

    .sort-control {
        flex-grow: 1;
        max-width: 250px;
    }

    .lst-detail-container {
        gap: 15px;
    }

    .description-section {
        padding: 1rem;
    }

    .lst-price {
        font-size: 22px;
        margin-bottom: 0.75rem;
    }

    .lst-title {
        margin: 1rem 0;
    }

    #lst-detail {
        padding: 0.9375rem;
        margin-top: 0.9375rem;
    }

    #lst-detail h2 {
        font-size: 1.4em;
        margin-bottom: 0.9375rem;
    }

    .contact-btn {
        width: 100%;
        padding: 0.625rem;
        font-size: 1rem;
        gap: 8px;
    }

    .content-wrapper {
        padding: 1rem;
    }

    .panel-header {
        margin-bottom: 1rem;
    }

    .panel-header h2 {
        font-size: 1.3em;
    }

    .table-wrapper {
        margin-top: 0.75rem;
    }

    .data-table {
        min-width: 600px;
    }

    .data-table th,
    .data-table td {
        padding: 0.625rem 0.5rem;
        font-size: 0.9em;
    }

    .status-badge,
    .data-table .btn {
        font-size: 14px;
        margin-right: 0.1875rem;
    }

    .info-banner {
        padding: 0.625rem;
    }

    /* Breadcrumbs */
    .btn-notification {
        padding: 0.625rem 0.875rem; /* 10px 14px */
        font-size: 14px;
        gap: 6px;
    }

    .breadcrumb {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
        flex-wrap: wrap;
    }

    .breadcrumb-item {
        gap: 0.25rem;
    }

    /* Location Autocomplete */
    .location-input {
        font-size: 16px;
        padding: 0.875rem 1rem;
    }

    .location-suggestions {
        max-height: 250px;
    }

    .location-suggestion {
        padding: 0.875rem 1rem;
    }

    .city-name {
        font-size: 16px;
    }

    .city-meta {
        font-size: 14px;
    }

    /* Distance Filter */
    .distance-badge {
        align-self: flex-start;
    }

    .search-results-header {
        padding: 0.75rem;
    }

    .search-results-header h3 {
        font-size: 16px;
    }

    /* Multi-Select */
    .btn-multi-dropdown {
        min-width: 100%;
    }

    .btn-multi-options {
        max-height: 240px;
    }

    /* Alerts */
    .toast-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }

    .toast {
        padding: 0.875rem 1rem;
    }

    .alert {
        padding: 0.875rem 1rem;
    }

    /* Category Selector */
    .category-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
        padding: 1rem;
    }

    .category-tile {
        padding: 1rem 0.5rem;
        min-height: 60px;
    }

    .category-tile-name {
        font-size: 0.85rem;
    }

    .category-two-column {
        height: 300px;
    }

    .category-modal-header,
    .category-search-container {
        padding: 1rem;
    }

    /* Category modal - tablet */
    .category-modal-content {
        width: 95%;
        max-width: 600px;
    }

    .category-main-item,
    .category-sub-item {
        padding: 0.8rem 1rem;
    }

    .category-main-item:hover,
    .category-sub-item:hover {
        padding-left: 1.2rem;
    }

    .category-item-name {
        font-size: 0.95rem;
    }

    .category-breadcrumb {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }

    /* Info modal - responsywność 768px */
    #info-modal-custom.modal .info-modal-content {
        width: 92%;
        margin: 1rem;
    }

    #info-modal-custom .info-modal-header {
        padding: 1.5rem 1.5rem 0.5rem;
    }

    #info-modal-custom .info-modal-header h3 {
        font-size: 1.25rem;
    }

    #info-modal-custom .info-modal-body {
        padding: 1rem 1.5rem 1.5rem;
    }

    #info-modal-custom .info-modal-icon svg {
        width: 60px;
        height: 60px;
    }

    #info-modal-custom .info-modal-message {
        font-size: 1rem;
    }

    #info-modal-custom .info-modal-footer {
        flex-direction: column-reverse;
        padding: 0 1.5rem 1.5rem;
        gap: 0.75rem;
    }

    #info-modal-custom .info-modal-footer .btn {
        width: 100%;
    }

    /* Bazowe modale - responsywność 768px */
    .modal-content {
        width: 95%;
        max-width: 480px;
        margin: 1rem;
        padding: 1.25rem;
    }

    .modal-header {
        padding: 1rem 1.25rem;
    }

    .modal-header h3 {
        font-size: 1.15rem;
    }

    .modal-body {
        padding: 1rem 1.25rem;
    }

    .modal-footer {
        padding: 1rem 1.25rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .modal-footer .btn,
    .modal-footer button {
        width: 100%;
    }

    /* Message modal - responsywność 768px */
    .modal.message-modal .modal-content {
        max-width: 90%;
        width: 280px;
        padding: 1.125rem;
    }

    .modal.message-modal .modal-header h3 {
        font-size: 1.15em;
    }

    .modal.message-modal .message-icon svg {
        width: 70px;
        height: 70px;
    }

    .modal.message-modal .message-text {
        font-size: 0.9em;
    }

    /* Report modal - responsywność 768px */
    .report-modal .modal-content,
    .report-modal-content {
        width: 95%;
        max-width: 450px;
    }

    .report-modal .modal-header {
        padding: 1rem 1.25rem;
        border-radius: 12px 12px 0 0;
    }

    .report-modal .modal-header h3 {
        font-size: 1.1rem;
    }

    .report-modal .modal-body {
        padding: 1.25rem;
    }

    .report-modal .form-group textarea {
        min-height: 110px;
        font-size: 0.875rem;
    }

    .report-modal .modal-footer {
        padding: 0.875rem 1.25rem;
        flex-direction: column-reverse;
        gap: 0.625rem;
    }

    .report-modal .btn-secondary,
    .report-modal .btn-primary {
        width: 100%;
        justify-content: center;
    }

    /* Confirmation modal - responsywność 768px */
    .confirmation-modal .modal-content {
        max-width: 95% !important;
        padding: 0;
    }

    .confirmation-modal .modal-header {
        padding: 1rem 1.25rem;
    }

    .confirmation-modal .modal-body {
        padding: 1rem 1.25rem;
    }

    .confirmation-modal .delete-message {
        font-size: 1rem;
    }

    .confirmation-modal .delete-warning {
        font-size: 0.875rem;
    }

    /* Contact modal - responsywność 768px */
    .contact-modal .modal-content {
        padding: 0;
    }
}

/* 576px - Mobile landscape */
@media (max-width: 576px) {

    /* No listings content responsywność */
    .no-listings-content {
        padding: 2.5rem 2.5rem;
    }

    #lst-detail {
        padding: 0.5rem;
    }

    /* Responsive styles dla .listing-* przeniesione do listings.css */

    .detail-item {
        font-size: 14px;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0px;
    }

    .detail-item.salary,
    .detail-item.date {
        flex: 1 1 auto;
        max-width: none;
    }

    .action-btn {
        padding: 0.5rem 0.9375rem;
        font-size: 14px;
    }

    .action-btn svg {
        width: 16px;
        height: 16px;
    }

    .pagination {
        gap: 4px;
        padding: 0.75rem 0;
        margin: 1rem 0;
    }

    .pagination-btn {
        padding: 0.5rem 0.75rem;
        font-size: 14px;
        min-height: 44px;
        box-sizing: border-box;
    }

    .filter-btn {
        padding: 0.5rem 0.875rem;
        font-size: 14px;
        gap: 5px;
        min-height: 44px;
        box-sizing: border-box;
    }

    .modal-header {
        padding: 0.8rem;
    }

    .modal-header h3 {
        font-size: 1.1em;
    }

    .modal-body {
        padding: 0.75rem;
        font-size: 0.9em;
    }

    .price-wrapper {
        align-items: center;
    }

    .admin-nav {
        padding: 0.5rem;
    }

    .admin-nav-item {
        padding: 0.5rem 0.625rem;
        font-size: 0.9em;
    }

    .data-table {
        min-width: 400px;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem 0.375rem;
        font-size: 0.85em;
    }

    .confirmation-modal.benefits-type .modal-content {
        padding: 1rem;
    }

    .info-icon {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 14px;
    }

    .badge.featured,
    .badge.promoted,
    .badge.owner-email {
        font-size: 11px;
        padding: 0.1875rem 0.375rem;
    }

    /* Category modal - mobile fullscreen */
    .category-modal-content {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
        margin: 0;
    }

    .category-main-item,
    .category-sub-item {
        padding: 1rem;
        min-height: 48px;
    }

    .category-search-input {
        font-size: 16px;
        padding: 0.8rem 1rem;
    }

    .category-item-arrow {
        font-size: 1.5rem;
    }

    .category-list-view,
    .category-subpositions-view {
        max-height: calc(100vh - 250px);
    }

    .category-modal-header h2 {
        font-size: 1.3rem;
    }

    .search-result-item {
        padding: 1rem;
    }

    .search-result-name {
        font-size: 1rem;
    }

    .search-result-path {
        font-size: 0.8rem;
    }

    /* Info modal - responsywność 576px */
    #info-modal-custom.modal .info-modal-content {
        width: 94%;
        margin: 0.75rem;
    }

    #info-modal-custom .info-modal-header {
        padding: 1.25rem 1.25rem 0.5rem;
    }

    #info-modal-custom .info-modal-header h3 {
        font-size: 1.2rem;
    }

    #info-modal-custom .info-modal-body {
        padding: 0.875rem 1.25rem 1.25rem;
    }

    #info-modal-custom .info-modal-icon svg {
        width: 56px;
        height: 56px;
    }

    #info-modal-custom .info-modal-message {
        font-size: 0.95rem;
    }

    #info-modal-custom .info-modal-footer {
        padding: 0 1.25rem 1.25rem;
    }

    /* Bazowe modale - responsywność 576px */
    .modal-content {
        width: 96%;
        max-width: none;
        margin: 0.75rem;
        padding: 1rem;
        border-radius: 10px;
    }

    .modal-header {
        padding: 0.875rem 1rem;
    }

    .modal-header h3 {
        font-size: 1.1rem;
    }

    .modal-body {
        padding: 0.875rem 1rem;
    }

    .modal-footer {
        padding: 0.875rem 1rem;
    }

    .close-modal {
        font-size: 1.25rem;
        padding: 0.375rem;
    }

    /* Report modal - responsywność 576px */
    .report-modal .modal-content,
    .report-modal-content {
        width: 96%;
        border-radius: 12px;
    }

    .report-modal .modal-header {
        padding: 1rem;
    }

    .report-modal .modal-header h3 {
        font-size: 1rem;
        gap: 0.5rem;
    }

    .report-modal .modal-header h3 svg {
        width: 20px;
        height: 20px;
    }

    .report-modal .modal-body {
        padding: 1rem;
    }

    .report-modal .modal-description {
        font-size: 0.85rem;
    }

    .report-modal .form-group textarea {
        min-height: 100px;
        font-size: 0.875rem;
    }

    .report-modal .modal-footer {
        padding: 0.75rem 1rem;
    }

    /* Confirmation modal - responsywność 576px */
    .confirmation-modal .modal-content {
        width: 96%;
        margin: 0.75rem;
    }

    .confirmation-modal h3 {
        font-size: 1.1rem;
    }

    .confirmation-modal .delete-message {
        font-size: 0.95rem;
        margin: 0.75rem 0 6px 0;
    }

    .confirmation-modal .delete-warning {
        font-size: 0.85rem;
    }

    /* Contact modal - responsywność 576px */
    .contact-modal .modal-content {
        padding: 0;
    }

    .contact-modal-header {
        padding: 1rem 1.25rem;
    }

    .contact-modal-header h3 {
        font-size: 1rem;
    }

    .contact-modal-body {
        padding: 1.25rem;
    }

    .contact-modal-item {
        padding: 0.875rem;
    }

    .contact-modal-icon {
        width: 42px;
        height: 42px;
    }

    .contact-modal-icon svg {
        width: 20px;
        height: 20px;
    }

    .contact-modal-value {
        font-size: 0.9375rem;
    }

    .cv-download-box {
        padding: 0.875rem;
    }

    .cv-icon {
        width: 48px;
        height: 48px;
    }

    /* Message modal - responsywność 576px */
    .modal.message-modal .modal-content {
        max-width: 92%;
        width: 260px;
        padding: 1rem;
        border-radius: 10px;
    }

    .modal.message-modal .modal-header h3 {
        font-size: 1.1em;
    }

    .modal.message-modal .message-icon {
        margin: 0.75rem 0;
    }

    .modal.message-modal .message-icon svg {
        width: 64px;
        height: 64px;
    }

    .modal.message-modal .message-text {
        font-size: 0.875em;
    }

    .modal.message-modal .modal-footer .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* 500px - Contact modal responsywność */
@media (max-width: 500px) {
    .contact-modal-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    .cv-download-box {
        flex-wrap: wrap;
    }
}

/* 480px - Mobile portrait large */
@media (max-width: 480px) {

    /* No listings content responsywność */
    .no-listings-content {
        padding: 1.875rem 1.25rem;
    }

    /* Report button text */
    .report-listing-btn-text {
        display: none;
    }

    /* Breadcrumbs */
    .breadcrumb {
        padding: 0.5rem 0.75rem;
        gap: 0;
    }

    .breadcrumb-item {
        gap: 0;
    }

    .breadcrumb-item svg,
    .breadcrumb-item i {
        display: none;
    }

    /* Alerts */
    .toast-container {
        top: 0.5rem;
        right: 0.5rem;
        left: 0.5rem;
    }

    .toast {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .alert {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .alert-icon,
    .toast-icon {
        width: 18px;
        height: 18px;
    }

    /* Info modal - responsywność 480px */
    #info-modal-custom.modal .info-modal-content {
        max-width: 400px;
    }

    #info-modal-custom .info-modal-header {
        padding: 1.5rem 1.5rem 0.75rem;
    }

    #info-modal-custom .info-modal-message {
        line-height: 1.6;
    }

    #info-modal-custom .info-modal-footer .btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.95rem !important;
        min-height: 44px !important;
    }

    /* Bazowe modale - responsywność 480px */
    .modal-content {
        width: 94%;
        margin: 0.5rem;
        padding: 0.875rem;
    }

    .modal-header {
        padding: 0.75rem;
    }

    .modal-header h3 {
        font-size: 1.05rem;
    }

    .modal-body {
        padding: 0.75rem;
    }

    .modal-footer {
        padding: 0.75rem;
        gap: 1rem;
    }

    /* Report modal - responsywność 480px */
    .report-modal .modal-content,
    .report-modal-content {
        width: 94%;
    }

    .report-modal .modal-header h3 {
        font-size: 0.95rem;
    }

    .report-modal .form-group textarea {
        min-height: 80px;
        padding: 0.75rem;
    }

    .report-modal .btn-secondary,
    .report-modal .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    /* Confirmation modal - responsywność 480px */
    .confirmation-modal .modal-content {
        width: 94%;
    }

    .confirmation-modal .modal-header {
        padding: 0.75rem 1rem;
    }

    .confirmation-modal .modal-body {
        padding: 0.875rem 1rem;
    }

    /* Contact modal - responsywność 480px */
    .contact-modal-content {
        width: 90%;
        max-width: calc(100% - 1rem);
        margin: 0.5rem;
    }

    .contact-modal .modal-content {
        padding: 0;
    }

    .contact-modal-header {
        padding: 0.875rem 1rem;
    }

    .contact-modal-header h3 {
        font-size: 0.95rem;
        gap: 0.5rem;
    }

    .contact-modal-body {
        padding: 1rem;
    }

    .contact-modal-item {
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .contact-modal-icon {
        width: 40px;
        height: 40px;
    }

    .contact-modal-label {
        font-size: 0.8rem;
    }

    .contact-modal-value {
        font-size: 0.875rem;
    }

    .cv-download-box {
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .cv-icon {
        width: 44px;
        height: 44px;
    }

    .cv-title {
        font-size: 0.85rem;
    }

    .cv-filename {
        font-size: 0.8rem;
    }

    .cv-download-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.85rem;
        min-height: 44px;
    }

    /* Message modal - responsywność 480px */
    .modal.message-modal .modal-content {
        max-width: 94%;
        width: 250px;
        padding: 0.875rem;
    }

    .modal.message-modal .modal-header h3 {
        font-size: 1.05em;
    }

    .modal.message-modal .message-icon {
        margin: 0.625rem 0;
    }

    .modal.message-modal .message-icon svg {
        width: 60px;
        height: 60px;
    }

    .modal.message-modal .message-text {
        font-size: 0.85em;
    }

    .modal.message-modal .modal-footer .btn {
        padding: 0.5625rem 1.125rem;
        font-size: 0.875rem;
    }

    #listingLimitModal .modal-content {
        padding: 1.5rem 1.25rem !important;
        margin: 1rem;
        width: calc(100% - 32px) !important;
    }

    #listingLimitModal .modal-content h2 {
        font-size: 18px !important;
    }

    #listingLimitModal .modal-content p {
        font-size: 14px !important;
        margin-bottom: 1.25rem !important;
    }

    #listingLimitModal .modal-content .btn-primary {
        padding: 0.625rem 1.25rem !important;
        font-size: 14px !important;
    }

    #listingLimitModal .modal-content > div:first-child {
        width: 52px !important;
        height: 52px !important;
        margin-bottom: 1rem !important;
    }

    #listingLimitModal .modal-content > div:first-child svg {
        width: 26px !important;
        height: 26px !important;
    }
}

/* 420px - Mobile portrait */
@media (max-width: 420px) {
    .save-listing-btn-text {
        display: none !important;
    }

    /* .listing-title responsive - przeniesione do listings.css */

    .detail-item {
        flex-basis: 100%;
    }

    .detail-item.salary,
    .detail-item.date {
        flex: 1 1 auto;
    }

    .detail-item.category,
    .detail-item.region {
        display: none;
    }

    .promoted-home-section .detail-item.category,
    .promoted-home-section .detail-item.region {
        display: flex;
    }

    #listingsList .detail-item.category,
    #listingsList .detail-item.region {
        display: flex;
        max-width: 180px;
    }

    .modal-header {
        padding: 0.5rem;
    }

    .modal-body {
        padding: 0.5rem;
        font-size: 0.85em;
    }

    .lst-title {
        font-size: 20px;
    }

    .lst-price {
        font-size: 18px;
    }

    /* Info modal - responsywność 420px */
    #info-modal-custom.modal .info-modal-content {
        max-width: 380px;
    }

    #info-modal-custom .info-modal-header {
        padding: 1.25rem 1.25rem 0.75rem;
    }

    #info-modal-custom .info-modal-icon svg {
        width: 52px;
        height: 52px;
    }

    #info-modal-custom .info-modal-footer .btn {
        padding: 0.6875rem 1.25rem !important;
        font-size: 0.9rem !important;
    }

    /* Bazowe modale - responsywność 420px */
    .modal-content {
        margin: 0.375rem;
        padding: 0.75rem;
        border-radius: 8px;
        width: 96%;
    }

    .modal-header {
        padding: 0.625rem 0.75rem;
    }

    .modal-header h3 {
        font-size: 1rem;
    }

    .modal-body {
        padding: 0.625rem 0.75rem;
        font-size: 0.9rem;
    }

    .modal-footer {
        padding: 0.625rem 0.75rem;
    }

    .close-modal {
        font-size: 1.125rem;
        padding: 0.25rem;
    }

    /* Report modal - responsywność 420px */
    .report-modal .modal-content,
    .report-modal-content {
        border-radius: 10px;
        width: 96%;
    }

    .report-modal .modal-header {
        padding: 0.875rem;
        border-radius: 10px 10px 0 0;
    }

    .report-modal .modal-header h3 {
        font-size: 0.9rem;
    }

    .report-modal .close-modal {
        padding: 0.375rem;
    }

    .report-modal .modal-body {
        padding: 0.875rem;
    }

    .report-modal .modal-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .report-modal .form-group textarea {
        min-height: 90px;
        padding: 0.75rem;
    }

    .report-modal .modal-footer {
        padding: 0.625rem 0.875rem;
        border-radius: 0 0 10px 10px;
    }

    /* Confirmation modal - responsywność 420px */
    .confirmation-modal .modal-content {
        margin: 0.375rem;
        width: 96%;
    }

    .confirmation-modal h3 {
        font-size: 1rem;
    }

    .confirmation-modal .modal-header {
        padding: 0.625rem 0.875rem;
    }

    .confirmation-modal .modal-body {
        padding: 0.75rem 0.875rem;
    }

    .confirmation-modal .delete-message {
        font-size: 0.9rem;
        margin: 0.625rem 0 5px 0;
    }

    .confirmation-modal .delete-warning {
        font-size: 0.85rem;
        margin-bottom: 0.625rem;
    }

    .confirmation-modal .modal-footer {
        padding: 0.625rem 0.875rem;
    }

    /* Contact modal - responsywność 420px */
    .contact-modal-content {
        max-width: none;
        margin: 0.375rem;
        border-radius: 10px;
    }

    .contact-modal .modal-content {
        padding: 0;
    }

    .contact-modal-header {
        padding: 0.75rem 0.875rem;
        border-radius: 10px 10px 0 0;
    }

    .contact-modal-header h3 {
        font-size: 0.95rem;
    }

    .contact-modal-header h3 svg {
        width: 20px;
        height: 20px;
    }

    .contact-modal-body {
        padding: 0.875rem;
    }

    .contact-modal-grid {
        gap: 0.5rem;
    }

    .cv-divider {
        margin: 0.5rem 0;
    }

    .contact-modal-item {
        padding: 0.625rem;
        border-radius: 8px;
    }

    .contact-modal-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    .contact-modal-icon svg {
        width: 18px;
        height: 18px;
    }

    .cv-download-box {
        gap: 0.625rem;
        padding: 0.625rem;
        border-radius: 8px;
    }

    .cv-icon {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    .cv-icon svg {
        width: 22px;
        height: 22px;
    }

    .cv-download-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        border-radius: 6px;
        min-height: 44px;
    }

    .details-row {
        gap: 4px;
        width: 100%;
    }

    .action-btn {
        padding: 0.5rem 0.75rem;
        gap: 4px;
        min-height: 44px;
        box-sizing: border-box;
    }

    .action-btn svg {
        width: 14px;
        height: 14px;
    }

    .lst-detail-container {
        padding: 0 4px;
    }

    .description-section {
        padding: 0.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .description-section h3 {
        font-size: 18px;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .description-content {
        line-height: 1.6;
        color: #333;
    }

    .contact-btn {
        font-size: 0.9rem;
        gap: 6px;
    }

    .contact-btn svg {
        width: 20px;
        height: 20px;
    }

    .admin-layout {
        gap: 12px;
    }

    .admin-sidebar {
        order: 1;
    }

    .content-wrapper {
        order: 2;
        padding: 0.75rem;
    }

    .admin-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .admin-nav-item {
        padding: 0.5rem 0.75rem;
        font-size: 14px;
        flex: 1 1 auto;
        min-height: 44px;
        box-sizing: border-box;
        text-align: center;
        min-width: 0;
    }

    .panel-header h2 {
        font-size: 1.2em;
    }

    .data-table {
        min-width: 0;
        width: 100%;
        font-size: 13px;
        overflow-x: auto;
    }

    .data-table th,
    .data-table td {
        padding: 0.375rem 0.25rem;
        font-size: 13px;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 80px;
    }

    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .status-badge {
        font-size: 11px;
        padding: 0.1875rem 0.3125rem;
    }

    .admin-controls .search-box {
        width: 100%;
    }

    .admin-controls .filter-buttons {
        flex-wrap: wrap;
        gap: 4px;
        justify-content: center;
    }

    .search-box input {
        width: 100%;
        padding: 0.5rem 0.625rem 0.5rem 2rem; /* 8px 10px 8px 32px */
        font-size: 14px;
        min-height: 44px;
        box-sizing: border-box;
    }

    .btn-notification {
        padding: 0.5rem 0.625rem; /* 8px 10px */
        font-size: 13px;
        gap: 6px;
        min-height: 44px;
    }

    .listings-controls {
        align-items: stretch;
    }

    .listings-controls-left {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .filter-buttons {
        gap: 4px;
    }

    .filter-btn {
        padding: 0.5rem 0.75rem;
        gap: 4px;
        min-height: 44px;
        box-sizing: border-box;
    }

    .pagination {
        gap: 2px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination-btn {
        font-size: 13px;
        min-width: 36px;
        min-height: 44px;
    }

    /* Message modal - responsywność 420px */
    .modal.message-modal .modal-content {
        padding: 0.75rem;
        max-width: 96%;
        width: 240px;
        border-radius: 8px;
    }

    .modal.message-modal .modal-header h3 {
        font-size: 1em;
    }

    .modal.message-modal .message-icon {
        margin: 0.5rem 0;
    }

    .modal.message-modal .message-icon svg {
        width: 56px;
        height: 56px;
    }

    .modal.message-modal .message-text {
        font-size: 0.85em;
        line-height: 1.4;
    }

    .modal.message-modal .modal-footer .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        min-height: 44px;
    }

    .modal-header {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .info-banner {
        margin: 0.5rem 0;
        font-size: 14px;
        padding: 0.75rem;
    }

    .badge.featured,
    .badge.promoted,
    .badge.owner-email {
        padding: 0.125rem 0.375rem;
        font-size: 11px;
        margin: 0 2px;
    }

    #basic-info {
        display: block;
        padding: 0;
    }

    #basic-info .info-item {
        flex: none;
        min-width: auto;
        margin-bottom: 0.75rem;
    }

    .contact-actions {
        margin-top: 0.375rem;
    }

    #lst-detail {
        padding: 0.375rem;
        overflow-x: hidden;
    }

    .lst-detail-container {
        padding: 0 2px;
        overflow-x: hidden;
    }

    .description-section {
        padding: 0.375rem;
        box-sizing: border-box;
        overflow-x: hidden;
    }

}

/* 400px - Small mobile */
@media (max-width: 400px) {
    /* Info modal - responsywność 400px */
    #info-modal-custom.modal .info-modal-content {
        width: 95%;
        max-width: 360px;
        margin: 0.5rem;
    }

    #info-modal-custom .info-modal-header {
        padding: 1rem 1rem 0.75rem;
    }

    #info-modal-custom .info-modal-header h3 {
        font-size: 1.15rem;
    }

    #info-modal-custom .info-modal-body {
        padding: 0.75rem 1rem 1rem;
    }

    #info-modal-custom .info-modal-icon svg {
        width: 48px;
        height: 48px;
    }

    #info-modal-custom .info-modal-message {
        font-size: 0.9rem;
    }

    #info-modal-custom .info-modal-footer {
        padding: 0 1rem 1rem;
    }

    #info-modal-custom .info-modal-footer .btn {
        padding: 0.625rem 1.125rem !important;
        font-size: 0.875rem !important;
    }

    /* Bazowe modale - responsywność 400px */
    .modal-content {
        width: 98%;
        margin: 0.25rem;
        padding: 0.625rem;
        border-radius: 6px;
    }

    .modal-header {
        padding: 0.5rem 0.625rem;
    }

    .modal-header h3 {
        font-size: 0.95rem;
    }

    .modal-body {
        padding: 0.5rem 0.625rem;
        font-size: 0.875rem;
    }

    .modal-footer {
        padding: 0.5rem 0.625rem;
    }

    /* Report modal - responsywność 400px */
    .report-modal .modal-content,
    .report-modal-content {
        width: 98%;
        border-radius: 8px;
    }

    .report-modal .modal-header {
        padding: 0.75rem;
        border-radius: 8px 8px 0 0;
    }

    .report-modal .modal-header h3 {
        font-size: 0.9rem;
    }

    .report-modal .modal-body {
        padding: 0.75rem;
    }

    .report-modal .modal-footer {
        padding: 0.5rem 0.75rem;
        border-radius: 0 0 8px 8px;
    }

    /* Confirmation modal - responsywność 400px */
    .confirmation-modal .modal-content {
        width: 98%;
        margin: 0.25rem;
    }

    .confirmation-modal h3 {
        font-size: 0.95rem;
    }

    .confirmation-modal .modal-header {
        padding: 0.5rem 0.75rem;
    }

    .confirmation-modal .modal-body {
        padding: 0.625rem 0.75rem;
    }

    .confirmation-modal .delete-message {
        font-size: 0.85rem;
    }

    .confirmation-modal .delete-warning {
        font-size: 0.8rem;
    }

    /* Contact modal - responsywność 400px */
    .contact-modal-content {
        margin: 0.25rem;
        border-radius: 8px;
    }

    .contact-modal .modal-content {
        padding: 0;
    }

    .contact-modal-header {
        padding: 0.625rem 0.75rem;
        border-radius: 8px 8px 0 0;
    }

    .contact-modal-header h3 {
        font-size: 0.9rem;
    }

    .contact-modal-body {
        padding: 0.75rem;
    }

    .contact-modal-item {
        padding: 0.5rem;
    }

    .contact-modal-icon {
        width: 32px;
        height: 32px;
    }

    .contact-modal-icon svg {
        width: 16px;
        height: 16px;
    }

    .contact-modal-label {
        font-size: 0.8rem;
    }

    .contact-modal-value {
        font-size: 0.85rem;
    }

    .cv-download-box {
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .cv-icon {
        width: 36px;
        height: 36px;
    }

    .cv-title {
        font-size: 0.85rem;
    }

    .cv-download-btn {
        padding: 0.375rem 0.625rem;
    }

    /* Message modal - responsywność 400px */
    .modal.message-modal .modal-content {
        padding: 0.5rem;
        max-width: 98%;
        width: 230px;
        border-radius: 6px;
    }

    .modal.message-modal .modal-header h3 {
        font-size: 0.95em;
    }

    .modal.message-modal .message-icon {
        margin: 0.375rem 0;
    }

    .modal.message-modal .message-icon svg {
        width: 50px;
        height: 50px;
    }

    .modal.message-modal .message-text {
        font-size: 0.85em;
    }

    .modal.message-modal .modal-footer .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        min-height: 44px;
    }

    .category-modal-header h2 {
        font-size: 1.1rem;
    }

    .category-main-item,
    .category-sub-item {
        padding: 0.9rem 0.8rem;
    }

    .category-item-name {
        font-size: 0.9rem;
    }
}

/* Print styles */
@media print {
    .action-btn,
    .sorting-options {
        display: none !important;
    }
}

/* ==================== HEADER MODALS ==================== */
/* Animacja fade-in dla modali */
@keyframes modalFadeIn {
    from { 
        opacity: 0; 
        transform: scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}
