body {
    font-family: Arial, sans-serif;
    background-color: #333;
    color: #fff;
    padding: 20px;
}

:root {
    color-scheme: only light;
}

.container {
    /* Container for main content */
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Stylizacja zakładek --- */
.tabs ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid #ccc;
    display: flex;
}

.tabs li a {
    display: block;
    padding: 5px 10px;
    height: 35px;
    text-decoration: none;
    color: #555;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
}

.tabs li a:hover {
    background-color: #e0e0e0;
    cursor: pointer;
}

.tabs li a.active {
    background-color: #fff;
    border-color: #ccc;
    border-bottom: 2px solid #fff;
    color: #0056b3;
    font-weight: bold;
    position: relative;
    bottom: -2px;
}

/* --- Pokazywanie/ukrywanie treści --- */
.content-wrapper {
    padding: 20px;
    border: 1px solid #ccc;
    border-top: none;
}

.tab-content {
    display: none;
}

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

/* --- Stylizacja tabeli --- */
.loot-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #222;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.loot-table th,
.loot-table td {
    border: 1px solid #444;
    padding: 10px;
    text-align: center;
}

.loot-table th.monster-header {
    background: #444;
    font-size: 1.3em;
    color: #ffd700;
}

.loot-table th.item-header {
    background: #333;
    color: #fff;
}

.loot-table th.player-name {
    background: #222;
    font-weight: bold;
}

/* --- Kolorowanie komórek status-cell wg priorytetu --- */
th.status-cell.priority-1,
td.status-cell.priority-1 {
    background: #38761d !important;
    color: #fff !important;
}

/* zielony */
th.status-cell.priority-2,
td.status-cell.priority-2 {
    background: #b6d7a8 !important;
    color: #222 !important;
}

/* pomarańczowy */
th.status-cell.priority-3,
td.status-cell.priority-3 {
    background: #ffff00 !important;
    color: #222 !important;
}

/* żółty */
th.status-cell.priority-4,
td.status-cell.priority-4 {
    background: #666666 !important;
    color: #fff !important;
}

/* szary */
th.status-cell.priority-9,
td.status-cell.priority-9 {
    background: #d8810f !important;
    color: #fff !important;
}

th.status-cell.priority-13,
td.status-cell.priority-13 {
    background: #ff0000 !important;
    color: #000000 !important;
}

th.status-cell.priority-90,
td.status-cell.priority-90 {
    background: #530b0b !important;
    color: #ffffff !important;
}


th.status-cell.priority-99,
td.status-cell.priority-99 {
    background: transparent !important;
    color: #fff !important;
}

/* brak koloru */

/* --- Random Number Generator Styles --- */
.random-generator {
    margin-top: 30px;
    padding: 20px;
    background: #333;
    border: 1px solid #ccc;
}

.random-generator h3 {
    color: #fff;
    margin-bottom: 15px;
}

.generator-inputs {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.generator-inputs label {
    color: #fff;
    font-weight: bold;
}

.generator-inputs input {
    padding: 8px;
    border: 1px solid #555;
    border-radius: 4px;
    background: #333;
    color: #fff;
    width: 80px;
}

.generator-inputs button {
    padding: 8px 16px;
    background: #0056b3;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.generator-inputs button:hover {
    background: #004494;
}

.results {
    padding: 10px;
    background: #1a1a1a;
    border-radius: 4px;
    border: 1px solid #555;
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1em;
    min-height: 20px;
}

.nav-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px;
    background: #222;
    border: 1px solid #444;
    border-radius: 4px;
    align-items: center;
}

.nav-btn {
    text-decoration: none;
    color: #ccc;
    background-color: #444;
    border: 1px solid #555;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.2s;
    font-size: 13px;
}

.nav-btn:hover {
    background-color: #555;
    color: white;
    border-color: #777;
}

.nav-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
}

.nav-btn.install {
    background-color: #2c3e50;
    border-color: #34495e;
}

.nav-btn.install-left {
    margin-left: auto;
    background-color: #2c3e50;
    border-color: #34495e;
}

.nav-btn.install:hover {
    background-color: #34495e;
}

.nav-btn.install-left:hover {
    background-color: #34495e;
}

.footer {
    margin-top: auto;
    padding-top: 30px;
    padding-bottom: 10px;
    border-top: 1px solid #444;
    text-align: center;
    color: #777;
    font-size: 11px;
}

.footer a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: #ddd;
    text-decoration: underline;
}