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

.component-container {
  /* max-width: 1200px; */
  margin: 0 auto;
}
h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #edebeb;
}

/* Animation List Grid Layout */
#animation-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Animation Card Styling */
.animation-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.animation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

/* Card Title */
.animation-card h3 {
  margin-bottom: 15px;
  font-size: 1.5em;
  color: #edebeb;
}

/* Preview Container */
.preview-container {
  background: #fff;
  color: #000;
  padding: 10px;
  border-radius: 5px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}


/* Modal Overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

/* Modal Content (centered) */
.modal-content {
  background: #2a2a2a;
  color: #fff;
  margin: 100px auto;
  padding: 20px;
  border-radius: 8px;
  max-width: 700px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  text-align: left;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  transition: color 0.3s ease;
}
.close-btn:hover {
  color: #ccc;
}

/* Modal Headings */
.modal-content h3 {
  margin-top: 30px;
  font-size: 1.1em;
  color: #1abc9c;
}

/* Code Blocks */
pre {
  background: #1e1e1e;
  padding: 10px;
  margin-bottom: 10px;
  overflow-x: auto;
  border-radius: 5px;
  font-size: 0.9em;
  max-height: 200px;
  white-space: pre-wrap;
  color: #fff;
}

/* Copy Buttons */
.copy-btn {
  background: #1abc9c;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9em;
  margin-bottom: 20px;
  margin-right: 10px;
  transition: background 0.3s ease;
}
.copy-btn:hover {
  background: #17a589;
}


/* Additional styles for new components */
.component-container {
    width: 100%;
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 20px;
}

h2 {
    margin-bottom: 20px;
}

.search-container {
    position: relative;
    margin-bottom: 20px;
    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;
}

.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: none;
    color: #2563eb;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
}

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

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

.animation-card {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
 
}

.animation-card h3 {
    margin-top: 0;
}

.preview-container {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
}

.view-code-btn {
    padding: 8px 16px;
    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;
}

.animation-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
