/* === GLOBAL STYLES === */
body {
    font-family: Arial, sans-serif;
    color: #fff;
    margin: 0;
    padding: 20px;
}

/* === BOX COMPONENTS === */
.table-box,
.settings-box {
    background-color: #2b2b2b;
    padding: 10px;
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    position: absolute;
    cursor: move;
    max-height: 400px; /* Limits the height of the box */
    overflow: hidden;  /* Prevent scroll on the entire box */
}

/* === SCROLLBAR STYLES === */
.inventory-table-wrapper {
    position: relative;
    overflow: hidden;
}

.inventory-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    color: #ddd;
    table-layout: fixed;  /* Ensures the table fills the width and is not affected by content */
}

.inventory-table-wrapper table thead {
    position: sticky;
    top: 0;
    background-color: #3b3b3b;
    z-index: 1;
}

/* Custom scrollbar styles */
.inventory-table-body-wrapper {
    max-height: 280px;  /* Adjusted max height */
    overflow-y: auto;
    padding-right: 8px;  /* Space for the scrollbar */
}

/* Custom scrollbar styles */
.inventory-table-body-wrapper::-webkit-scrollbar {
    width: 6px;  /* Smaller width for the scrollbar */
}

.inventory-table-body-wrapper::-webkit-scrollbar-track {
    background-color: #444;
    border-radius: 10px;
}

.inventory-table-body-wrapper::-webkit-scrollbar-thumb {
    background-color: #00e0ff;
    border-radius: 10px;
    border: 2px solid #2b2b2b;
}

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

/* === TABLE STYLES === */
th,
td {
    padding: 6px;
    text-align: left;
    border-bottom: 1px solid #555;
}

th {
    background-color: #3b3b3b;
    color: #fff;
    min-width: 100px;  /* Ensures that table headers have a minimum width */
}

.processable td {
    color: orange;
    font-weight: bold;
}

/* === SETTINGS TOGGLE === */
.settings-toggle {
    background: #333;
    color: #00e0ff;
    border: 1px solid #555;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 6px;
    width: 100%;
    text-align: left;
}

.settings-menu {
    display: none;
}

.settings-menu label {
    font-size: 14px;
    color: #ccc;
    user-select: none;
}

.settings-menu input {
    transform: scale(1.2);
    margin-right: 6px;
}

/* === WEIGHT BAR === */
.weight-bar {
    margin: 10px 0;
}

.weight-label {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 4px;
}

.weight-progress-bg {
    background-color: #444;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.weight-progress-fill {
    height: 100%;
    background-color: #00e0ff;
    width: 0%;
    transition: width 0.3s ease;
}

.hide {
    display: none;
}
