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

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

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

/* Shape Container Grid: 8 cards per row on wide screens */
#shape-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

/* Shape Card Styling - Square Cards */
.shape-card {
  position: relative;
  background: #1e1e1e;
  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;
  cursor: pointer;
}
.shape-card:hover {
  transform: translateY(-5px);
}

/* SVG Preview Container */
.svg-preview {
  background: #2a2a2a;
  padding: 5px;
  border-radius: 5px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

/* If using an image as preview */
.shape-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Shape Info Styling */
.shape-info h3 {
  margin: 0;
  font-size: 0.9em;
  margin-bottom: 3px;
}
.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: 38px;
  height: 38px;
  text-align: center;
  line-height: 20px;
}
.download-btn:hover {
  background: #cf3c2c;
}


/* Additional styles for new components */
.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;
}

.more-btn {
    display: flex;
   align-items: center;
    margin-left: 10px;
    background: transparent;
    border: 1px solid #ccc;
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 32px;
}

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

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

.shape-category {
    font-size: 12px;
    color: #666;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 5px;
    display: inline-block;
}
