/* Global Base Styles */
body {
  margin: 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  /* border-radius: 12px; */
  background: linear-gradient(135deg, #232526, #414345);
}

.sidebar-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
  padding: 3px 8px 0px 8px;
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.component-container {
  /* max-width: 1200px; */
  margin: 0 auto;
  /* border-radius: 12px; */
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #edebeb;
}

/* Icon Container Grid: using a fixed min width for each card */
#icon-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

/* Icon Card Styling - square and compact */
.icon-card {
  position: relative;
  background: rgb(237 235 235);
  border: 1px solid #444;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  transition: transform 0.3s ease;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.icon-card:hover {
  transform: translateY(-5px);
}


/* SVG Preview Container */
.svg-preview {
  background: rgb(237 235 235);
  padding: 5px;
  border-radius: 5px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

/* Icon Info Styling */
.icon-info h3 {
  margin: 0;
  font-size: 0.9em;
  margin-bottom: 3px;
  font-size: 16px;
  font-weight: 100;
  color: #212121;
}
.price {
  font-size: 0.8em;
  color: #27ae60;
}

/* Download Button Styling */
.download-btn {
  position: absolute;
  top: -10px;
  right: -8px;
  background: linear-gradient(81deg, #fa5560, #b14df4, #4d91ff);
  padding: 4px;
  border-radius: 50%;
  display: inline-block;
  color: #fff;
  transition: background 0.3s ease;
  width: 24px;
  height: 24px;
  text-align: center;
  line-height: 20px;
}
.download-btn:hover {
  background: #cf3c2c;
}

/* Popup styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

.popup-close:hover {
  color: #000;
}

.popup-svg-container {
  width: 300px;
  height: 300px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-svg-container svg {
  max-width: 100%;
  max-height: 100%;
}

.popup-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.popup-download {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.popup-download:hover {
  background-color: #45a049;
}

/* Make icon cards clickable */
.icon-card {
  cursor: pointer;
  transition: transform 0.2s ease;
}

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

/* Additional CSS for new components - add these to your style.css file */
.search-container {
  position: relative;
  margin-bottom: 20px;
}

#search-input {
  margin-bottom: 10px;
  width: 100%;
  padding: 10px;
  border-radius: 24px;
  box-sizing: border-box;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: #ffffff29;
  color: #fff;
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.category-tabs-container {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-tabs-container::-webkit-scrollbar {
  display: none;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tab-btn {
  padding: 8px 16px;
  background: #f5f5f5;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: linear-gradient(
    81.02deg,
    rgb(250, 85, 96) -23.47%,
    rgb(177, 75, 244) 45.52%,
    rgb(77, 145, 255) 114.8%
  );  color: white;
}

.category-toggle {
  display: inline-block;
 

}

.more-btn {
    right: 24px;
    top: 211px;
    background-color: #3a3a3a;
    border: 1px solid #dee2e6;
    color: #f0f0f0;
    border-radius: 50%;
    /* width: 28px; */
    /* height: 24px; */
    display: flex
;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: absolute;
    padding: 8px 10px;
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  gap: 5px;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: white;
  cursor: pointer;
}

.page-num.active {
  background: linear-gradient(
    81.02deg,
    rgb(250, 85, 96) -23.47%,
    rgb(177, 75, 244) 45.52%,
    rgb(77, 145, 255) 114.8%
  );  color: white;
}

.pagination-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: white;
  cursor: pointer;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ellipsis {
  padding: 0 5px;
  color: #fff;
}

.icon-category {
  font-size: 12px;
  color: #fff;
  background: #3a3a3a;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 5px;
  display: inline-block;
}

.no-results {
  text-align: center;
  padding: 30px;
  color: #666;
}


