/**
 * CSS dla wtyczki Pro Frontend Fishing
 */

:root {
    --primary-color: #0073aa;
    --primary-hover: #0088cc;
    --success-color: #46b450;
    --warning-color: #ffb900;
    --error-color: #dc3232;
    --text-color: #333;
    --text-secondary: #666;
    --light-bg: #f8f8f8;
    --border-color: #e5e5e5;
    --border-radius: 4px;
}

/* Energia */
.pro-energy-info {
    display: flex;
    align-items: center;
    font-size: 14px;
    background-color: var(--light-bg);
    border-radius: 4px;
    padding: 4px 8px;
    margin-bottom: 10px;
}

.energy-label {
    font-weight: 600;
    margin-right: 5px;
}

.energy-value {
    font-weight: 700;
    color: var(--success-color);
    padding: 0 5px;
}

.energy-value.energy-low {
    color: var(--error-color);
}

.energy-cost {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 3px;
}

/* Modal energii */
.energy-depleted-info {
    text-align: center;
    padding: 15px;
    background-color: #fff8e5;
    border-left: 4px solid var(--warning-color);
    margin-bottom: 15px;
}

.energy-depleted-info h3 {
    color: #996800;
    margin-top: 0;
}

/* Kontenery i marginesy globalne - kompaktowe */
.pro-fishing-container {
    margin: 15px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--text-color);
    background-color: #fff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Nagłówek sekcji - mniej miejsca */
.pro-fishing-header {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pro-fishing-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

/* Poprawki dla modalu łowienia */
.pro-fishing-container .pro-active-setup-info {
    padding: 15px;
    margin-bottom: 15px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
}

.pro-fishing-container .pro-active-setup-info h3 {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
}

.pro-setup-components {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 12px 0;
}

.component {
    background-color: #fff;
    padding: 10px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.component label {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 5px;
    display: block;
}

.component span {
    font-size: 14px;
    color: var(--text-color);
}

.component-image {
    display: flex;
    align-items: center;
    gap: 10px;
}

.component-image img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.component-details {
    flex: 1;
}

.component-name {
    font-weight: 600;
    font-size: 14px;
}

.component-stats {
    font-size: 12px;
    color: var(--text-secondary);
}

.setup-description {
    font-style: italic;
    font-size: 13px;
    color: var(--text-secondary);
    margin: 10px 0;
    padding: 8px 10px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    border-left: 2px solid var(--primary-color);
}

.pro-setup-stats {
    margin: 12px 0;
    padding: 10px;
    background-color: #fff;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.pro-setup-stats h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-color);
}

.pro-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

/* Przycisk łowienia */
.pro-fishing-actions {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pro-fishing-actions button {
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
}

#pro-fishing-button,
#pro-change-bait-button,
#pro-chances-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#pro-fishing-button:before,
#pro-change-bait-button:before,
#pro-chances-button:before {
    font-family: dashicons;
    font-size: 16px;
    margin-right: 6px;
    opacity: 0.9;
}

#pro-fishing-button:before {
    content: "\f345";
}

#pro-change-bait-button:before {
    content: "\f16c";
}

#pro-chances-button:before {
    content: "\f239";
}

/* Modal */
.pro-modal {
    display: none;
    position: fixed;
    z-index: 10000; /* Wysokie z-index, aby upewnić się, że jest ponad wszystkim */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.pro-modal-content {
    background-color: white;
    margin: 5% auto; /* Zmniejszony margin, aby modal był wyżej */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Mocniejszy cień */
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.pro-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s;
}

.pro-modal-close:hover {
    color: #333;
}

/* Pro stat bar */
.pro-stat {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pro-stat label {
    font-size: 12px;
    font-weight: 600;
    width: 65px;
    color: var(--text-secondary);
}

.stat-bar {
    flex: 1;
    height: 6px;
    background-color: #e6e6e6;
    border-radius: 3px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--success-color) 100%);
    border-radius: 3px;
}

.pro-stat span {
    font-size: 12px;
    font-weight: 600;
    min-width: 30px;
    text-align: right;
    color: var(--text-secondary);
}

/* Styl dla przycisku zarządzania zestawami */
.pro-manage-setups-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    color: #fff !important;
    background-color: var(--primary-color);
    border-radius: 4px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.pro-manage-setups-button:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.pro-manage-setups-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    line-height: 1;
    vertical-align: middle;
}

/* Styl dla kontenera bez setupu */
.pro-no-setup {
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.pro-no-setup p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #666;
}

/* Poprawki dla select w modalu */
.pro-setup-field select {
    height: 32px;
    line-height: 1.5;
    font-size: 13px;
    width: 100%;
    max-width: 100%;
    padding: 5px;
    border-radius: 3px;
    border: 1px solid #ddd;
}

/* Poprawa ogólnego wyrównania dla wszystkich dashicons w przyciskach */
button .dashicons,
.button .dashicons {
    vertical-align: middle;
    position: relative;
    top: -1px;
    line-height: 1;
    height: auto;
    width: auto;
    margin-right: 4px;
}

.bait-quantity {
    display: inline-block;
    background-color: var(--light-bg);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 5px;
    font-weight: normal;
}

/* ==================== */
/* MODAL WYNIKÓW ŁOWIENIA */
/* ==================== */

/* Nagłówki powiadomień wyniku */
.fishing-success h3,
.fishing-partial-success h3,
.fishing-failure h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
    padding: 8px 12px;
    font-size: 16px;
    border-radius: 4px;
    color: #fff;
}

.fishing-success h3 {
    background-color: var(--success-color);
}

.fishing-partial-success h3 {
    background-color: var(--warning-color);
}

.fishing-failure h3 {
    background-color: var(--error-color);
}

.result-message {
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
    padding: 0 5px;
}

/* Kontener z detalami złowionej ryby */
.caught-fish-details {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 15px;
    margin: 15px 0 0 0;
    padding: 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
}

/* Lewa kolumna - obrazek i nazwa */
.caught-fish-image-container {
    display: flex;
    gap: 15px;
    align-items: center;
    background-color: white;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fish-image-wrapper {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-bg);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.fish-image-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.fish-name-container {
    text-align: left;
    flex-grow: 1;
}

.fish-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 8px 0;
}

.fish-weight {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    display: inline-block;
    padding: 3px 8px;
    background-color: var(--light-bg);
    border-radius: 12px;
}

/* Prawa kolumna - informacje */
.caught-fish-info-container {
    background-color: white;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fish-stats-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.fish-stats-header {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 12px;
    padding-bottom: 8px;
}

.fish-stats-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

/* Zawartość statystyk */
.fish-stats-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 15px;
}

.fish-description {
    background-color: var(--light-bg);
    padding: 12px;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    max-height: 200px;
    overflow-y: auto;
}

/* Element statystyk */
.fish-stat-item {
    padding: 8px 10px;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--light-bg);
    border-radius: 4px;
}

.fish-stat-item:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.fish-stat-item .stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    width: auto;
}

.fish-stat-item .stat-value {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: right;
    max-width: 60%;
    min-width: auto;
}

/* Responsywność dla większych ekranów */
@media screen and (min-width: 500px) {
    /* Dwukolumnowy układ dla statystyk */
    .fish-stats-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (min-width: 768px) {
    /* Wracamy do jednokolumnowego układu dla statystyk */
    .fish-stats-content {
        grid-template-columns: 1fr;
    }

    /* Układ dwukolumnowy dla głównych sekcji */
    .caught-fish-details {
        grid-template-columns: minmax(0, 45%) minmax(0, 55%);
    }

    /* Obrazek i nazwa jako osobne elementy w pionie */
    .caught-fish-image-container {
        flex-direction: column;
        gap: 10px;
    }

    .fish-image-wrapper {
        width: 100%;
    }

    .fish-name-container {
        text-align: center;
    }

    .pro-fishing-actions {
        flex-direction: row;
    }

    .pro-fishing-actions button {
        width: auto;
    }
}

/* Responsywność dla mniejszych ekranów */
@media screen and (max-width: 767px) {
    .pro-fishing-actions {
        flex-direction: column;
    }

    .pro-fishing-actions button {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* Stare klasy dla kompatybilności wstecznej */
.component-image.caught-fish-image img {
    min-height: 120px;
    max-height: 200px;
    width: auto;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

.component-image.caught-fish-image {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.component-image.caught-fish-image .component-details {
    text-align: left;
    margin-left: 15px;
}

.component-image.caught-fish-image .component-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.caught-fish-info {
    background-color: white;
    padding: 12px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fish-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.fish-stats p {
    padding: 5px 8px;
    background-color: var(--light-bg);
    border-radius: 4px;
    margin: 0;
    display: flex;
    justify-content: space-between;
}

.fish-stats p strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
}

.fish-stats p span {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: right;
    max-width: 60%;
}

/* Modal szans - tabela */
body.modal-open {
    overflow: hidden; /* Zapobiega przewijaniu strony pod modalem */
}

/* Dodatkowe style dla tabeli szans - uwzględniające nową kolumnę "Klasa" */
.pro-chances-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
}

.pro-chances-table th {
    background-color: var(--primary-color, #0073aa);
    color: white;
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap; /* Zapobiega łamaniu nagłówków */
}

/* Style dla komórek "Klasa" */
.pro-chances-table td:nth-child(2) {
    font-weight: 500;
    color: #0073aa; /* Kolor dla wyróżnienia klasy ryby */
}

.pro-chances-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-color);
}

.pro-chances-table tr:nth-child(even) {
    background-color: var(--light-bg);
}

.pro-chances-table tr:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Style specyficzne dla rzadkości ryb */
.pro-chances-table .rarity-pospolita td:nth-child(2) {
    color: #666;
}

.pro-chances-table .rarity-niepospolita td:nth-child(2) {
    color: #2e7d32;
}

.pro-chances-table .rarity-rzadka td:nth-child(2) {
    color: #1976d2;
}

.pro-chances-table .rarity-epicka td:nth-child(2) {
    color: #9c27b0;
    font-weight: bold;
}

.pro-chances-table .rarity-legendarna td:nth-child(2) {
    color: #ff9800;
    font-weight: bold;
}

/* Modal zmiany przynęty */
.pro-setup-field {
    margin-bottom: 15px;
}

.pro-setup-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.pro-setup-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

@media screen and (max-width: 480px) {
    .pro-setup-actions {
        flex-direction: column;
    }

    .pro-setup-actions button {
        width: 100%;
        margin-bottom: 5px;
    }
}

#pro-fishing-result {
    margin-top: 25px;
}

/* Dodatkowe style dla powiadomień */
.pro-notification {
    position: fixed;
    top: 32px;
    right: 20px;
    z-index: 9999;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    max-width: 400px;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.pro-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.pro-notification .dashicons {
    margin-right: 10px;
    font-size: 20px;
}

.pro-notification-success {
    border-left: 4px solid var(--success-color);
}

.pro-notification-success .dashicons {
    color: var(--success-color);
}

.pro-notification-error {
    border-left: 4px solid var(--error-color);
}

.pro-notification-error .dashicons {
    color: var(--error-color);
}

.pro-notification-warning {
    border-left: 4px solid var(--warning-color);
}

.pro-notification-warning .dashicons {
    color: var(--warning-color);
}

.pro-notification-info {
    border-left: 4px solid var(--primary-color);
}

.pro-notification-info .dashicons {
    color: var(--primary-color);
}

.notification-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.notification-close {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    margin-left: 10px;
}

.notification-close:hover {
    opacity: 1;
}

@media screen and (max-width: 782px) {
    .pro-notification {
        top: 46px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Stylizacja przycisków akcji */
.pro-fishing-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.pro-fishing-actions button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f5f5f5;
    color: #333;
}

.pro-fishing-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.pro-fishing-actions button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.pro-fishing-actions button:before {
    font-family: dashicons;
    font-size: 18px;
    margin-right: 8px;
    opacity: 0.9;
}

/* Główny przycisk łowienia */
#pro-fishing-button {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    min-width: 160px;
    padding: 12px 20px;
}

#pro-fishing-button:hover {
    background: linear-gradient(135deg, #0088cc 0%, #0073aa 100%);
}

#pro-fishing-button:before {
    content: "\f345";
}

/* Przycisk zmiany przynęty */
#pro-change-bait-button {
    background: linear-gradient(135deg, #f1f1f1 0%, #e1e1e1 100%);
    color: #555;
}

#pro-change-bait-button:hover {
    background: linear-gradient(135deg, #e1e1e1 0%, #d1d1d1 100%);
}

#pro-change-bait-button:before {
    content: "\f16c";
}

/* Przycisk szans */
#pro-chances-button {
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    color: #555;
}

#pro-chances-button:hover {
    background: linear-gradient(135deg, #e8e8e8 0%, #d8d8d8 100%);
}

#pro-chances-button:before {
    content: "\f239";
}

/* Obsługa stanu wyłączonego */
.pro-fishing-actions button:disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pro-fishing-actions button:disabled:hover {
    box-shadow: none;
    transform: none;
}

/* Animacja podczas łowienia */
@keyframes fishing-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 115, 170, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 115, 170, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 115, 170, 0);
    }
}

#pro-fishing-button.fishing {
    animation: fishing-pulse 1.5s infinite;
}

/* Responsywność dla mobilnych ekranów */
@media screen and (max-width: 480px) {
    .pro-fishing-actions {
        flex-direction: column;
    }

    .pro-fishing-actions button {
        width: 100%;
    }
}

/* Dodatkowe style dla przycisków w modalu */
.pro-modal-content .button {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pro-modal-content .button-primary {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
}

.pro-modal-content .button-primary:hover {
    background: linear-gradient(135deg, #0088cc 0%, #0073aa 100%);
}

.pro-modal-content .cancel-button {
    background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
    color: #555;
}

.pro-modal-content .cancel-button:hover {
    background: linear-gradient(135deg, #e5e5e5 0%, #d5d5d5 100%);
}

.pro-current-location {
    margin: 10px 0 15px;
    padding: 8px 12px;
    background-color: var(--light-bg);
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
    font-size: 14px;
    display: flex;
    align-items: center;
}

.location-label {
    font-weight: 600;
    margin-right: 8px;
    color: var(--text-secondary);
}

.location-value {
    font-weight: 500;
    color: var(--primary-color);
}

.pro-chances-tip {
    margin-top: 20px;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
    font-size: 13px;
}

.pro-chances-tip p {
    margin-top: 0;
    margin-bottom: 8px;
}

.pro-chances-tip ul {
    margin: 0;
    padding-left: 20px;
}

.pro-chances-tip li {
    margin-bottom: 4px;
}

.pro-no-fish-message {
    padding: 15px;
    background-color: #fff8e5;
    border-left: 3px solid #ffb900;
    border-radius: 4px;
}

.pro-no-fish-message p {
    margin-top: 0;
    margin-bottom: 10px;
}

.pro-no-fish-message ul {
    margin-bottom: 10px;
}
/* Style dla oddzielnych informacji o klasie i rzadkości */
.fish-stat-item .stat-label {
    font-weight: 600;
    color: var(--text-color);
}

/* Specjalne style dla klasy ryby */
.fish-stat-item[data-type="class"] .stat-value {
    font-weight: 600;
}

.fish-stat-item[data-type="class"] .stat-value.class-legendary,
.fish-stat-item[data-type="class"] .stat-value.class-legendarna {
    color: #ff9800; /* Pomarańczowy dla legendarnych */
}

.fish-stat-item[data-type="class"] .stat-value.class-epic,
.fish-stat-item[data-type="class"] .stat-value.class-epicka {
    color: #9c27b0; /* Fioletowy dla epickich */
}

.fish-stat-item[data-type="class"] .stat-value.class-rare,
.fish-stat-item[data-type="class"] .stat-value.class-rzadka {
    color: #1976d2; /* Niebieski dla rzadkich */
}

.fish-stat-item[data-type="class"] .stat-value.class-uncommon,
.fish-stat-item[data-type="class"] .stat-value.class-niepospolita {
    color: #2e7d32; /* Zielony dla niepospolitych */
}

.fish-stat-item[data-type="class"] .stat-value.class-common,
.fish-stat-item[data-type="class"] .stat-value.class-pospolita {
    color: #666; /* Szary dla pospolitych */
}

/* Specjalne style dla rzadkości ryby */
.fish-stat-item[data-type="rarity"] .stat-value {
    font-weight: 600;
}

.fish-stat-item[data-type="rarity"] .stat-value.rarity-legendarna {
    color: #ff9800; /* Pomarańczowy dla legendarnych */
}

.fish-stat-item[data-type="rarity"] .stat-value.rarity-epicka {
    color: #9c27b0; /* Fioletowy dla epickich */
}

.fish-stat-item[data-type="rarity"] .stat-value.rarity-rzadka {
    color: #1976d2; /* Niebieski dla rzadkich */
}

.fish-stat-item[data-type="rarity"] .stat-value.rarity-niepospolita {
    color: #2e7d32; /* Zielony dla niepospolitych */
}

.fish-stat-item[data-type="rarity"] .stat-value.rarity-pospolita {
    color: #666; /* Szary dla pospolitych */
}

/* Style dla tabeli szans - dodatkowa kolumna */
.pro-chances-table th:nth-child(2),
.pro-chances-table td:nth-child(2) {
    color: #fff; /* Kolor dla kolumny klasy */
}

.pro-chances-table th:nth-child(3),
.pro-chances-table td:nth-child(3) {
    color: #fff; /* Kolor dla kolumny rzadkości */
}

/* Rozszerzone style dla tabeli zgodnie z klasą i rzadkością */
.pro-chances-table .class-legendary td:nth-child(2),
.pro-chances-table .class-legendarna td:nth-child(2) {
    color: #ff9800;
    font-weight: bold;
}

.pro-chances-table .class-epic td:nth-child(2),
.pro-chances-table .class-epicka td:nth-child(2) {
    color: #9c27b0;
    font-weight: bold;
}

.pro-chances-table .class-rare td:nth-child(2),
.pro-chances-table .class-rzadka td:nth-child(2) {
    color: #1976d2;
}

.pro-chances-table .class-uncommon td:nth-child(2),
.pro-chances-table .class-niepospolita td:nth-child(2) {
    color: #2e7d32;
}

.pro-chances-table .class-common td:nth-child(2),
.pro-chances-table .class-pospolita td:nth-child(2) {
    color: #666;
}

/* Style dla modyfikowanej tabeli z dodatkową kolumną rzadkości */
.pro-chances-table th:nth-child(3),
.pro-chances-table td:nth-child(3) {
    color: #ff9800; /* Pomarańczowy kolor dla kolumny rzadkości */
}

.pro-chances-table .rarity-legendarna td:nth-child(3) {
    color: #ff9800;
    font-weight: bold;
}

.pro-chances-table .rarity-epicka td:nth-child(3) {
    color: #9c27b0;
    font-weight: bold;
}

.pro-chances-table .rarity-rzadka td:nth-child(3) {
    color: #1976d2;
}

.pro-chances-table .rarity-niepospolita td:nth-child(3) {
    color: #2e7d32;
}

.pro-chances-table .rarity-pospolita td:nth-child(3) {
    color: #666;
}