* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
  font-size: 14px;
  padding-bottom: 60px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.tab-container {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.tabs {
  flex: 1;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  display: inline-block;
  padding: 5px 12px;
  margin: 0 5px;
  border-radius: 15px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}
.tab.active {
  background-color: #00bfff;
  color: #fff;
}

.action-buttons {
  width: 40px;
  text-align: center;
}

.action-btn {
  color: #666;
  cursor: pointer;
  font-size: 20px;
  user-select: none;
  transition: color 0.2s ease;
}
.action-btn:hover {
  color: #00bfff;
}

.content {
  margin-top: 60px;
  padding: 10px;
}

.inventory-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 10px;
  background: white;
  border-radius: 10px;
  padding: 10px 0;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 20px;
  font-weight: bold;
  color: #00bfff;
}

.stat-label {
  font-size: 12px;
  color: #888;
}

.filter-toolbar {
  display: flex;
  justify-content: space-around;
  margin-bottom: 10px;
  background: white;
  border-radius: 10px;
  padding: 6px 0;
}

.filter-btn {
  cursor: pointer;
  color: #666;
  font-size: 14px;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 15px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.filter-btn:hover {
  background-color: #e0f7ff;
  color: #00bfff;
}
.filter-btn.active {
  background-color: #00bfff;
  color: white;
}

.item-list {
  background: white;
  border-radius: 10px;
  height: 60vh;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  transition: filter 0.3s;
}

.item-list.edit-mode .item-card {
  cursor: pointer;
}

.item-card {
  flex: 1 0 30%;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 6px;
  background: #fefefe;
  display: flex;
  gap: 10px;
  align-items: center;
  position: relative;
  user-select: none;
  cursor: default;
  transition: box-shadow 0.3s ease;
}

.item-card:hover {
  box-shadow: 0 4px 12px rgba(0, 191, 255, 0.5);
}

.item-card.selected {
  border: 2px solid #00bfff;
  box-shadow: 0 0 12px #00bfff;
}

.item-checkbox {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  z-index: 10;
}

.item-image {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 8px;
  flex-shrink: 0;
}
.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #444;
  user-select: text;
}

.item-name {
  font-weight: 600;
  color: #007acc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-wear {
  color: #666;
}

.item-price {
  color: #00bfff;
  font-weight: bold;
}

.action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  height: 50px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #ddd;
  z-index: 200;
}

.action-bar .action-btn {
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  color: #00bfff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.action-bar .action-btn.secondary {
  color: #888;
}

.action-bar .action-btn:hover {
  color: #0088cc;
}
