        :root {
            --mdc-theme-primary: #bb86fc;
            --mdc-theme-secondary: #03dac6;
            --mdc-theme-background: #121212;
            --mdc-theme-surface: #1e1e1e;
            --mdc-theme-on-primary: #000;
            --mdc-theme-on-secondary: #000;
            --mdc-theme-on-surface: #fff;
            --mdc-theme-text-primary-on-background: rgba(255, 255, 255, 0.87);
            --mdc-theme-text-secondary-on-background: rgba(255, 255, 255, 0.6);
        }
        body {
            font-family: Roboto, sans-serif;
            margin: 0;
            padding: 0;
            background-color: var(--mdc-theme-background);
            color: var(--mdc-theme-on-surface);
        }
        .mdc-top-app-bar {
            position: fixed;
            background-color: var(--mdc-theme-surface);
        }
        .main-content {
            padding-top: 64px;
            padding-left: 16px;
            padding-right: 16px;
        }
        .mdc-data-table {
            width: 100%;
            margin-top: 16px;
            background-color: var(--mdc-theme-surface);
            border: 1px solid rgba(255, 255, 255, 0.12);
        }
        .mdc-data-table__header-cell,
        .mdc-data-table__cell {
            color: var(--mdc-theme-on-surface);
            border-bottom: 1px solid rgba(255, 255, 255, 0.12);
            border-right: 1px solid rgba(255, 255, 255, 0.12);
        }
        .mdc-data-table__header-cell:last-child,
        .mdc-data-table__cell:last-child {
            border-right: none;
        }
        .mdc-data-table__row:last-child .mdc-data-table__cell {
            border-bottom: none;
        }
        .mdc-data-table__header-cell {
            font-weight: 500;
            text-transform: uppercase;
        }
        .mdc-chip {
            background-color: #1f1f1f;
        }
        .mdc-chip__text {
            color: var(--mdc-theme-on-surface);
        }
        .mdc-text-field {
            margin-top: 16px;
            margin-bottom: 16px;
            width: 100%;
        }
        .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,
        .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,
        .mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing {
            border-color: rgba(255, 255, 255, 0.38);
        }
        .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,
        .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,
        .mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing {
            border-color: rgba(255, 255, 255, 0.87);
        }
        .mdc-text-field--outlined .mdc-notched-outline {
            z-index: 1;
        }
        .mdc-text-field:not(.mdc-text-field--disabled) .mdc-floating-label {
            color: rgba(255, 255, 255, 0.6);
        }
        .mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label {
            color: var(--mdc-theme-primary);
        }
        .mdc-text-field:not(.mdc-text-field--disabled) .mdc-text-field__input {
            color: var(--mdc-theme-on-surface);
        }
		
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--mdc-theme-surface);
  color: var(--mdc-theme-on-surface);
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-image-container {
  text-align: center;
  margin-bottom: 20px;
}

.modal-image {
  max-width: 200px;
  max-height: 200px;
}

.modal-info h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--mdc-theme-primary);
    padding-bottom: 5px;
}

.modal-info table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.modal-info table td {
    padding: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-info table td:first-child {
    font-weight: bold;
    width: 40%;
}

.item-description {
  margin-top: 20px;
  font-style: italic;
}

.cannot-repair {
  color: #ff4d4d;
  font-weight: bold;
  margin-top: 10px;
}

.close-button {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: var(--mdc-theme-primary);
  color: var(--mdc-theme-on-primary);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 20px;
}

.close-button:hover {
  opacity: 0.9;
}

.mdc-button--raised {
  background-color: var(--mdc-theme-secondary);
  color: var(--mdc-theme-on-secondary);
  width: 100%;
}

.mdc-data-table__cell--image {
  text-align: center;
  vertical-align: middle;
}

.mdc-data-table__cell--image img {
  display: inline-block;
}
.lazy-image {
    transition: opacity 0.3s ease-in-out;
}

.lazy-image[src="images/placeholder.webp"] {
    opacity: 0.2;
}
/* Add this to your styles.css file */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  z-index: 1000;
  background-color: var(--mdc-theme-secondary);
  color: var(--mdc-theme-on-secondary);
}

#back-to-top:hover {
  background-color: var(--mdc-theme-secondary-dark, #018786);
}
#item-count {
    font-size: 0.8em;
    color: var(--mdc-theme-text-secondary-on-background);
    margin-left: 5px;
}