
body {
    overflow-y: hidden; /* Hides the vertical scrollbar on the main page */
}

.peeper-tool-container.bounty-page {
    max-width: 1200px;
    margin-top: 10px;
    margin-bottom: 50px;
    background-color: #222;
    padding: 30px 40px;
    border-radius: 12px;
    border: 2px solid black;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    text-align: center;
    width: 89%;
}

.script-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #00a8ff;
    -webkit-text-stroke: 1px black;
    text-shadow: 0px 0px 5px #00a8ff, 0px 0px 4px #0077cc;
    margin-bottom: 30px;
}

.filters-panel {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filters-panel .filter-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.filters-panel label {
    font-size: 1rem;
    color: #eee;
    font-weight: bold;
}

.filters-panel select, .filters-panel input {
    height: 38px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 1rem;
    border: 1.5px solid #007acc;
    background-color: #121212;
    color: #eee;
    box-sizing: border-box;
}

#sort-by {
    width: 250px;
}

#min-bounty {
    width: 150px;
}

.filters-panel .level-inputs {
    display: flex;
    align-items: center;
    gap: 5px;
}

.filters-panel .level-inputs input {
    width: 80px;
    text-align: center;
}

.filters-panel .level-inputs span {
    color: #eee;
}

.filters-panel button {
    padding: 8px 20px;
    height: 38px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
    background-color: #007acc;
    border: 1px solid #00a8ff;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.filters-panel button:hover {
    background-color: #00a8ff;
    transform: translateY(-2px);
}

/* UPDATED: Added max-height and overflow-y for a scrollable table body */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-height: 410px; /* Limits the height to show ~8-9 rows */
    overflow-y: auto;  /* Adds a vertical scrollbar when content exceeds max-height */
}

/* NEW: Custom scrollbar styling to match the site theme */
.table-wrapper::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 10px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background-color: #007acc;
    border-radius: 10px;
    border: 3px solid #2a2a2a;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background-color: #00a8ff;
}


.bounty-table {
    width: 100%;
    border-collapse: separate; /* Changed from 'collapse' */
    border-spacing: 0; /* Added this to remove gaps */
    background-color: #1c1c1c;
    min-width: 700px;
}

.bounty-table thead th {
    background-color: #007acc;
    color: #ffffff; /* Changed from 'black' for better contrast */
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #005f99;
    position: sticky; /* This makes the header stick to the top of the .table-wrapper */
    top: 0;
    z-index: 10;
    font-size: 0.95rem;
}

.bounty-table tbody tr:nth-child(even) { background-color: #2a2a2a; }
.bounty-table tbody tr:nth-child(odd) { background-color: #333; }

.bounty-table tbody td {
    padding: 10px 15px;
    border: 1px solid #444;
    color: #eee;
    font-size: 0.9rem;
    text-align: left;
    vertical-align: middle;
}

.bounty-table td:last-child {
    text-align: center;
}

.bounty-table tbody tr:hover { background-color: #404040; }

.bounty-table .action-btn {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    background-color: #007acc;
    border: 1px solid #00a8ff;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.1s;
}

.bounty-table .action-btn:hover {
    background-color: #00a8ff;
    transform: scale(1.05);
}

.bounty-table .bounty-link {
    color: #00a8ff;
    text-decoration: none;
}

.bounty-table .bounty-link:hover {
    text-decoration: underline;
}

/* Add this to the end of your bounties.css file */

/* Makes all text in the table body slightly bolder for readability */
.bounty-table tbody td {
    font-weight: 600;
}

/* New Status Color Classes */
.status-red {
    color: #FF4136 !important; /* A bright red for hospital/offline */
}

.status-green {
    color: #2ECC40 !important; /* A nice green for 'Okay' */
}

.status-orange {
    color: #FF851B !important; /* An orange for jail */
}

.status-blue {
    color: #7FDBFF !important; /* A light blue for traveling */
}

@media (max-width: 768px) {
	
	 body {
        overflow-y: auto !important; /* Allows the body to scroll on screens 768px or smaller */
    }
	
	  header #headerEditProfileBtn {
    display: none !important;
  }

	
    .peeper-tool-container.bounty-page {
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 20px;
    }

    .filters-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .filters-panel .filter-group {
        width: 100%;
        align-items: center;
    }
    
    .filters-panel select, .filters-panel input {
        width: 100%;
        text-align: center;
    }

    .filters-panel button {
        width: 100%;
        margin-top: 5px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .peeper-tool-container.bounty-page {
    margin-top: 4px;
  }
}