/* General page */
body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #303030;
  /*  background-image: url('bg1.jpg');*/
    color: #eee; /* Light text */
}

/* Container for sidebar + main content */
.container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Sidebar styling */
.sidebar {
    width: auto;
    background-color: #111; /* Dark sidebar */
    border: 1px solid #444;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
}

.sidebar h2 {
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 6px;
    text-align: center;
    color: #fff;
}

.sidebar table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 8px;
}

.sidebar th, .sidebar td {
    border: 1px solid #555;
    padding: 4px;
    text-align: center;
    vertical-align: bottom;
    font-size: 12px;
    color: #eee;
}

.sidebar th {
    background-color: #222;
}

.sidebar td select {
    width: 100%;
    margin-top: 2px;
    padding: 2px;
    font-size: 12px;
    background-color: #222;
    color: #eee;
    border: 1px solid #555;
}

.reset-buttons {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 5px;
}

.reset-buttons button {
    padding: 4px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid #888;
    border-radius: 3px;
    background-color: #444;
    color: #eee;
}

/* Main table styling */
.main-content {
    flex: 1;
}

table.data-table {
    border-collapse: collapse;
    width: 100%;
    background-color: #111; /* Dark table background */
    font-size: 12px;
}

table.data-table th, table.data-table td {
    border: 1px solid #555;
    padding: 4px;
    vertical-align: top;
    text-align: left;
    color: #eee;
}

table.data-table th {
    background-color: #222;
    font-weight: bold;
}

/* Special header cells */
table.data-table th.by-animal {
    background-color: orange !important;
    color: black !important;
	text-align: center;
}

.sidebar th.byweapon {
    background-color: orange !important;
    color: #000 !important;
}

/* Select row first-column dropdown */
.select-row td:first-child select {
    width: 100%;
    box-sizing: border-box;
    background-color: #000;
    color: #fff;
    border: 1px solid #555;
    padding: 2px;
    font-size: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.select-row td:first-child select:hover,
.select-row td:first-child select:focus {
    border-color: #ff6600;
    box-shadow: 0 0 3px #ffdd57;
    outline: none;
}

/* Special ammo cell */
td.ammo-special {
    font-weight: bold;
    text-align: center;
    color: #fff;
}

/* Category cells light gray with black text */
table.data-table tr:not(.select-row) td.category {
    background-color: #888 !important;
    color: #000 !important;
    font-weight: bold !important;
	text-align: center;
}

/* Style the reset button to fill the entire table cell */
.reset-button {
    width: 100%;
    padding: 6px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid #888;
    border-radius: 3px;
    background-color: #444;
    color: #eee;
    box-sizing: border-box;
}

/* Optional: ammo cell default style */
td[id^="ammo"] {
    color: #000; /* Will be overridden by JS when colored */
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
}

table.data-table th.category {
    background-color: #888 !important; /* same light gray */
    color: #000 !important;            /* same text color */
    font-weight: bold !important;
    text-align: center;
}