/* Inventory Page Styles */

.inventory-section {
  padding: 80px 0;
}

.inventory-table-wrapper {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  overflow: hidden;
}

.inventory-table {
  width: 100%;
  margin: 0;
}

.inventory-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.inventory-table th {
  background: #47424C;
  color: white;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 3px solid #28ABE3;
}

.inventory-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: middle;
}

.inventory-table tbody tr:hover {
  background-color: #f5f5f5;
  transition: background-color 0.2s ease;
}

.inventory-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

.inventory-table tbody tr:nth-child(even):hover {
  background-color: #f0f0f0;
}

.quantity-col {
  text-align: center;
  font-weight: 600;
  color: #28ABE3;
  font-size: 16px;
}

.search-box {
  margin-bottom: 30px;
  padding: 12px 20px;
  width: 100%;
  max-width: 500px;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.search-box:focus {
  outline: none;
  border-color: #28ABE3;
}

.inventory-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-card {
  background: linear-gradient(135deg, #47424C 0%, #5a5560 100%);
  color: white;
  padding: 30px;
  border-radius: 10px;
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #28ABE3;
}

.stat-label {
  font-size: 16px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.table-container {
  overflow-x: auto;
  max-height: 800px;
  overflow-y: auto;
}

.type-counts-section {
  margin-bottom: 40px;
  background: linear-gradient(135deg, #47424C 0%, #5a5560 100%);
  border-radius: 10px;
  padding: 35px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.type-counts-title {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: white;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.type-counts-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.type-count-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border-left: 4px solid #28ABE3;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.type-count-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 20px rgba(40, 171, 227, 0.3);
}

.type-name {
  font-weight: 600;
  color: white;
  font-size: 16px;
}

.type-count {
  background: #28ABE3;
  color: white;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 20px;
  min-width: 55px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(40, 171, 227, 0.4);
}

.type-counts-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.toggle-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 14px;
}

.toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #28ABE3;
}

.cutoff-control {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.cutoff-control label {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.cutoff-control input[type="range"] {
  width: 150px;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  outline: none;
  transition: all 0.3s ease;
}

.cutoff-control input[type="range"]:hover {
  background: rgba(255, 255, 255, 0.3);
}

.cutoff-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #28ABE3;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(40, 171, 227, 0.5);
  transition: all 0.3s ease;
}

.cutoff-control input[type="range"]::-webkit-slider-thumb:hover {
  background: #1a8fc4;
  transform: scale(1.1);
  box-shadow: 0 3px 12px rgba(40, 171, 227, 0.7);
}

.cutoff-control input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #28ABE3;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(40, 171, 227, 0.5);
  transition: all 0.3s ease;
}

.cutoff-control input[type="range"]::-moz-range-thumb:hover {
  background: #1a8fc4;
  transform: scale(1.1);
  box-shadow: 0 3px 12px rgba(40, 171, 227, 0.7);
}

.slider-value {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 6px 14px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 16px;
  min-width: 40px;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .inventory-table th,
  .inventory-table td {
    padding: 10px;
    font-size: 14px;
  }
  .stat-card {
    min-width: 150px;
  }
  .stat-number {
    font-size: 36px;
  }
  .type-counts-container {
    grid-template-columns: 1fr;
  }
}