* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #232526, #414345);
  /* border-radius: 12px; */
    color: #f5f5f5;
  line-height: 1.6;
}

/* Component container */
.component-container {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 2rem;
}

/* Header */
header {
  margin-bottom: 2rem;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

h2 {
  /* font-size: 2rem;
  font-weight: 700; */
  color: #f5f5f5;
 
}

.cart-icon {
  position: relative;
  font-size: 1.5rem;
  cursor: pointer;
  user-select: none;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #ff4757;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Search container */
.search-container {
  display: flex;
  margin-bottom: 1.5rem;
  width: 100%;
}

#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-btn {
  /* padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0 8px 8px 0;
  background-color: #3a3a3a;
  color: #f5f5f5;
  cursor: pointer; */
  /* font-size: 1rem; */
  transition: background-color 0.2s;
  display: none;
}

#search-btn:hover {
  background-color: #4a4a4a;
}

/* Back Button Styles */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  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;
  padding: 10px 20px;
  border: none;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 20px;
}

.back-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250, 85, 96, 0.4);
}

.back-button:active {
  transform: translateY(0);
}

/* Categories */
.categories-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.category-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  background-color: #2a2a2a;
  color: #f5f5f5;
  cursor: pointer;
  transition: all 0.2s;
}

.category-btn:hover {
  background-color: #3a3a3a;
}

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

/* Asset container */
#asset-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.svg-mode #asset-container {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.svg-mode .asset-info h3 {
  font-size: 16px;
}

.asset-card {
  background-color: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.asset-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.icon-container {
  padding: 2rem;
  background-color: #2a2a2a;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 180px;
}

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

.asset-info {
  padding: 1rem;
}

.asset-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #f5f5f5;
}

.price {
  font-weight: bold;
  color: #2196f3;
  margin-bottom: 0.5rem;
  text-decoration-line: line-through;
}

.free{
  display: flex;
  gap: 4px;
   font-weight: bold;
  color: #2196f3;
}


.category-tag {
  display: inline-block;
  font-size: 0.75rem;
  background-color: #3a3a3a;
  color: #f5f5f5;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.bookmark-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
  z-index: 1;
}

.bookmark-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 100;
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: #1e1e1e;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: modal-appear 0.3s ease;
}

@keyframes modal-appear {
  from {
      opacity: 0;
      transform: translateY(-20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: #2a2a2a;
}

.modal-header h3 {
  margin: 0;
  color: #f5f5f5;
}

#close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #f5f5f5;
  cursor: pointer;
}

.modal-body {
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

#modal-icon {
  max-width: 200px;
  max-height: 200px;
}

#modal-icon svg {
  width: 100%;
  height: 100%;
}

.modal-footer {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2a2a2a;
}

#modal-category {
  color: #bbb;
  font-size: 0.9rem;
}

#modal-category span {
  color: #2196f3;
  font-weight: 500;
}

#download-icon {
  padding: 0.5rem 1rem;
  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;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

#download-icon:hover {
  background: linear-gradient(
    81.02deg,
    rgb(250, 85, 96) -23.47%,
    rgb(177, 75, 244) 45.52%,
    rgb(77, 145, 255) 114.8%
  );}

/* Notification */
.notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  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;
  padding: 12px 24px;
  border-radius: 4px;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: all 0.3s ease;
}

.notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* No Results */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  font-size: 1.1rem;
  color: #bbb;
}
/* In your style.css file, replace the bookmark-btn styles with: */

.download-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: linear-gradient(81.02deg, rgb(250, 85, 96) -23.47%, rgb(177, 75, 244) 45.52%, rgb(77, 145, 255) 114.8%);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
  z-index: 1;
}

.download-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
}
.categories-wrapper {
  position: relative;
  margin: 15px 0;
}

.categories-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-btn {
  padding: 6px 12px;
  border: 1px solid #e0e0e0;
  background-color: #3a3a3a;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.category-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-btn:hover:not(.active) {
  background-color: #e9ecef62;
}

.category-toggle {
  position: absolute;
  right: 10px;
  top: 0;
  background-color: #3a3a3a;
  border: 1px solid #dee2e6;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.category-toggle:hover {
  background-color: #4a4a4a;
}

.hidden-category {
  display: none;
}

.expanded-view .hidden-category {
  display: block;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    user-select: none;
}

.pagination-numbers {
    display: flex;
    margin: 0 10px;
}

.page-number {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #e0e0e0;
    margin: 0 3px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.page-number:hover {
    background-color: #f5f5f52f;
}

.page-number.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-arrow {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.pagination-arrow:hover {
    background-color: #f5f5f5;
}

.pagination-arrow.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
}

.page-ellipsis {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Toggle Switch Styles - Simplified */
.toggle-container {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 15px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 200px;
    /* height: 34px; */
    border-radius: 34px;
    /* overflow: hidden; */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-options {
    display: flex;
    width: 100%;
    height: 100%;
}

.toggle-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    height: 100%;
    cursor: pointer;
    /* font-weight: bold; */
    font-size: 14px;
    transition: 0.3s;
    z-index: 1;
}

.option-color {
  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;
    border-radius: 4px 0px 0px 4px;
}

.option-svg {
    background-color: #ececec;
    color: #333;
    border-radius: 0px 4px 4px 0px;
}

/* When in SVG mode */
input:checked ~ .toggle-options .option-color {
    background-color: #ececec;
    color: #333;
}

input:checked ~ .toggle-options .option-svg {
  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;
}

/* Component container styles for different modes */
.component-container {
    transition: background-color 0.3s;
}


/* Style for SVG version */
.svg-mode .asset-card {
    background-color: #1e1e1e;
    border: 1px solid #e1e4e8;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.svg-mode .icon-container svg {
    stroke: #333;
}

.svg-mode .category-tag {
    background-color: #e0e0e0;
    color: #555;
}

.svg-mode .icon-container {
  background-color: rgb(237 235 235);
  
}

.svg-mode .modal-body {
background-color: #f5f5f5;
}

/* Mode indicator */
.mode-indicator {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    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;
    display: none;
}

.svg-mode .mode-indicator {
    background-color: #333;
}

/* Custom notification */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    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;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 1000;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive styles */
@media (max-width: 768px) {
  .component-container {
      padding: 1rem;
  }
  
  #asset-container {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      gap: 1rem;
  }
  
  .icon-container {
      height: 120px;
  }
  
  .modal-content {
      width: 95%;
  }
}