#download-modal-img {
  position: absolute;
  top: 30px;
  right: 90px;
  z-index: 10000;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}
#download-modal-img .download-icon {
  width: 2.2rem;
  height: 2.2rem;
  stroke: #fff;
  background: rgba(0,0,0,0.2);
  border-radius: 50%;
  padding: 4px;
  transition: background 0.2s;
}
#download-modal-img:hover .download-icon {
  background: #0dcaf0;
  stroke: #222;
}
/* Modal for inventory image preview */
#image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
}
#close-modal {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}
#modal-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 0 20px #000;
}
.filter-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 24px 0 18px 0;
  justify-content: center;
}

.country-bar{
  gap: 3px;
}

#countryFilter, #categoryFilter {
  /* Your modern styles here */
  padding: 8px 36px 8px 12px;
  border: 1.5px solid #0dcaf0;
  border-radius: 8px;
  background: linear-gradient(90deg, #f8fafd 0%, #e9f7fd 100%);
  font-size: 1rem;
  color: #222;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(13, 202, 240, 0.07);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  margin-bottom: 0;
  position: relative;
  min-width: 180px;
}
#countryFilter:focus, #categoryFilter:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 2px #0dcaf055;
}

#countryFilter, #categoryFilter {
  background-image: url("data:image/svg+xml;utf8,<svg fill='none' stroke='%230dcaf0' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
}

.search-bar {
margin: 20px 0 10px 0;
display: flex;
justify-content: center;
}
.search-bar input {
  padding: 8px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 250px;
  transition: border 0.2s;
  width: 80vw;
  box-sizing: border-box;
}
.search-bar input:focus {
  border-color: #0d6efd;
  outline: none;
}

.countryLabel{
  margin-left: 15px;
}

.inventory-cards {
  display: grid;
  gap: 16px;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, 170px); /* Fixed card width */
  padding: 16px;
}

.inventory-card {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.inventory-card:hover {
  background-color: #e9f7fd;
  transform: scale(1.02);
}

.card-id {
  font-weight: bold;
  padding: 8px;
  margin-bottom: 5px;
  border-radius: 4px;
  border: 1px solid #0d15f0;
  background-color: #3d87ff;
  color: #ffffff;
}

.card-image {
  background-color: #fff; /* White background */
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-details p {
  margin: 8px 0;
  font-size: 1rem; /* Default font size */
}

.card-manu {
  font-weight: bold;
  color: #0d6efd; /* Bootstrap primary color */
}

.card-model {
  font-weight: bold;
  color: #0d6efd; /* Bootstrap primary color */
}

.card-category {
  font-style: italic;
  color: #6c757d; /* Bootstrap secondary color */
}

.card-condition {
  font-weight: bold;
  color: #28a745; /* Bootstrap success color */
}

.card-price {
  font-weight: bold;
  color: #2c36f7; /* Bootstrap danger color */
}

/* Media queries for dynamic sizing */
@media (max-width: 1280px) {
  .inventory-cards {
    grid-template-columns: repeat(auto-fit, 150px); /* Slightly smaller cards */
  }
  .card-details p {
    font-size: 0.9rem; /* Slightly smaller text */
  }
}

@media (max-width: 768px) {
  .inventory-cards {
    grid-template-columns: repeat(auto-fit, 25vw); /* Smaller cards for tablets */
  }
  .card-details p {
    font-size: 0.8rem; /* Smaller text for tablets */
  }
}

@media (max-width: 480px) {
  .inventory-cards {
    grid-template-columns: repeat(auto-fit, 40vw); /* Smallest cards for mobile */
  }
  .card-details p {
    font-size: 0.7rem; /* Smallest text for mobile */
  }
}