body{
    margin: 10px !important;
    background-color: #876A38FF !important;
}
.stage {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem 0;
    margin: 0 -5%;
    overflow: hidden;
  }

.stat-data{
    background-color: #605443;
    color: white;
    text-align: center;
}

.dot-pulse {
    position: relative;
    left: -9999px;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #9880ff;
    color: #9880ff;
    box-shadow: 9999px 0 0 -5px #9880ff;
    animation: dotPulse 1.5s infinite linear;
    animation-delay: .25s;
}
.dot-pulse::before, .dot-pulse::after {
    content: '';
    display: inline-block;
    position: absolute;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #9880ff;
    color: #9880ff;
}
.dot-pulse::before {
    box-shadow: 9984px 0 0 -5px #9880ff;
    animation: dotPulseBefore 1.5s infinite linear;
    animation-delay: 0s;
}
.dot-pulse::after {
    box-shadow: 10014px 0 0 -5px #9880ff;
    animation: dotPulseAfter 1.5s infinite linear;
    animation-delay: .5s;
}
@keyframes dotPulseBefore {
    0% {
        box-shadow: 9984px 0 0 -5px #9880ff;
   }
    30% {
        box-shadow: 9984px 0 0 2px #9880ff;
   }
    60%, 100% {
        box-shadow: 9984px 0 0 -5px #9880ff;
   }
}
@keyframes dotPulse {
    0% {
        box-shadow: 9999px 0 0 -5px #9880ff;
   }
    30% {
        box-shadow: 9999px 0 0 2px #9880ff;
   }
    60%, 100% {
        box-shadow: 9999px 0 0 -5px #9880ff;
   }
}
@keyframes dotPulseAfter {
    0% {
        box-shadow: 10014px 0 0 -5px #9880ff;
   }
    30% {
        box-shadow: 10014px 0 0 2px #9880ff;
   }
    60%, 100% {
        box-shadow: 10014px 0 0 -5px #9880ff;
   }
}
#wrapper{
    margin: auto;
    width: 70%;
    text-align: center;
}
td{
    border: 1px solid #94866d;
    background-color: #e2dbc8;
    padding: 10px !important;
    text-align: center;
}
td:first-child {
    width: 40px;
}
td:nth-child(2) {
    width: auto;
}
td:nth-child(3) {
    width: 100px;
}
td:nth-child(4) {
    width: 100px;
}
table {
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
}
thead th {
    border: 1px solid #94866d;
    background-color: #d4cbb5;
    padding: 10px !important;
    text-align: center;
    font-weight: bold;
}
.header-row th {
    border: 1px solid #94866d;
    background-color: #d4cbb5;
    padding: 10px !important;
    text-align: center;
    font-weight: bold;
}
thead th:first-child,
.header-row th:first-child {
    width: 40px;
}
thead th:nth-child(2),
.header-row th:nth-child(2) {
    width: auto;
}
thead th:nth-child(3),
.header-row th:nth-child(3) {
    width: 100px;
}
thead th:nth-child(4),
.header-row th:nth-child(4) {
    width: 100px;
}
tbody{
    margin: auto;
    width: 100%;
}
.debug-hide{
    display: none;
}
.debug-show{
    display: block;
}
.debug-show p{
    display: block;
    max-width: 75%;
    overflow-x: auto;
}

.always{
    background-color: #AFEEEE;
}
.common{
    background-color: #56E156;
}
.uncommon{
    background-color: #FFED4C;
}
.rare{
    background-color: #FF863C;
}
.veryrare{
    background-color: #FF6262;
}
.hover-link img{
    padding-left: 10px;
    display: "inline";
}

.npc-link {
    color: #F2C848;
    text-decoration: underline;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.npc-link:hover {
    color: #FFD700;
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.npc-name-link {
    color: #F2C848;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.npc-name-link:hover {
    color: #FFD700;
    text-decoration: underline;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}

.item-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.item-image {
    width: 32px;
    height: 32px;
}

.stat-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
}

.stat-wrapper {
    position: relative;
    display: inline-block;
}

.stat-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #3d3225;
    color: #e2dbc8;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
    border: 1px solid #94866d;
}

.item-info {
    flex: 1;
}

.item-description {
    background-color: #d4cbb5;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #94866d;
}

.item-details {
    background-color: #e2dbc8;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #94866d;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #c4b8a0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: bold;
    color: #5c4d3a;
}

.detail-value {
    color: #3d3225;
}

.item-bonuses {
    margin-top: 20px;
}

.bonuses-table {
    width: 100%;
    max-width: 600px;
    border-collapse: collapse;
    margin-top: 10px;
}

.bonuses-table th,
.bonuses-table td {
    border: 1px solid #94866d;
    padding: 8px;
    text-align: left;
}

.bonuses-table th {
    background-color: #d4cbb5;
    font-weight: bold;
    width: 50%;
}

.bonuses-table td {
    background-color: #e2dbc8;
    width: 50%;
}

.navbar {
    background-color: #605443;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #94866d;
}

.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.nav-tabs button {
    background-color: #d4cbb5;
    border: 2px solid #94866d;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    color: #3d3225;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-tabs button:hover {
    background-color: #e2dbc8;
    border-color: #7a6b5a;
}

.nav-tabs button.active {
    background-color: #F2C848;
    border-color: #c4a030;
    color: #3d3225;
}

.search-input {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 2px solid #94866d;
    border-radius: 5px;
    background-color: #e2dbc8;
    color: #3d3225;
    font-size: 14px;
    margin: 0 auto;
    display: block;
}

.search-input:focus {
    outline: none;
    border-color: #F2C848;
    background-color: #f0e8d8;
}
