/* 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;
}

.search-and-reset-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.search-and-reset-container .search-box {
  margin-bottom: 0;
  flex: 1;
  min-width: 250px;
  max-width: 500px;
}

#resetFiltersBtn {
  padding: 12px 24px;
  background: #f5f5f5;
  color: #47424C;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

#resetFiltersBtn:hover {
  background: #efefef;
  border-color: #28ABE3;
  color: #28ABE3;
}

@media (max-width: 768px) {
  .search-and-reset-container {
    flex-direction: column;
  }
  
  .search-and-reset-container .search-box {
    width: 100%;
    max-width: 100%;
  }
  
  #resetFiltersBtn {
    width: 100%;
  }
}

.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;
  }

/* Category Filter Styles for Donation Pages */

.category-filter-section {
  margin-bottom: 40px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 35px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid #e8e8e8;
}

.filter-header-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.stat-card-compact {
  flex-shrink: 0;
  min-width: 220px;
  padding: 25px 20px;
  margin: 0;
}

.stat-card-compact .stat-number {
  font-size: 42px;
}

.stat-card-compact .stat-label {
  font-size: 14px;
}

.filter-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.filter-content h3 {
  margin-bottom: 20px !important;
  margin-top: 0;
}

.filter-content .category-filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
}

.category-filter-section h3 {
  color: #47424C;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 30px !important;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.category-filter-section h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, #28ABE3 0%, #1a8fc4 100%);
  border-radius: 2px;
}

.category-filter-section .category-filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
}

.category-filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
}

.category-filter-btn {
  padding: 11px 20px;
  background: white;
  color: #47424C;
  border: 2px solid #d8d8d8;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  text-transform: capitalize;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.category-filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.category-filter-btn:hover {
  background: #f0f8ff;
  border-color: #28ABE3;
  color: #28ABE3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 171, 227, 0.2);
}

.category-filter-btn:hover::before {
  left: 100%;
}

.category-filter-btn.active {
  background: linear-gradient(135deg, #28ABE3 0%, #1a8fc4 100%);
  border-color: #28ABE3;
  color: white;
  box-shadow: 0 4px 15px rgba(40, 171, 227, 0.4);
  transform: translateY(-2px);
}

.category-filter-section .reset-filters-btn {
  display: block;
  margin: 20px auto 0;
  padding: 8px 24px;
  background: #f5f5f5;
  color: #47424C;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
}

.reset-filters-btn {
  display: block;
  margin: 0 auto;
  padding: 8px 24px;
  background: #f5f5f5;
  color: #47424C;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
}

.category-filter-section .reset-filters-btn:hover,
.reset-filters-btn:hover {
  background: #efefef;
  border-color: #28ABE3;
  color: #28ABE3;
}

@media (max-width: 768px) {
  .category-filter-section {
    padding: 20px;
  }
  
  .filter-header-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  
  .stat-card-compact {
    min-width: 100%;
  }
  
  .category-filter-controls {
    gap: 8px;
  }
  
  .category-filter-btn {
    padding: 8px 14px;
    font-size: 12px;
  }
  
  .reset-filters-btn {
    padding: 8px 16px;
    font-size: 12px;
  }
  
  .category-filter-section h3 {
    font-size: 14px;
    margin-bottom: 15px !important;
  }
}

}