/* 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;
}

/* 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);
}

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

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

/* Palette Container */
#palette-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 8px;
}

/* Palette Card */
.palette-card {
  background: rgb(237 235 235);
  border: 0.5px solid rgb(177, 75, 244);
  border-radius: 8px;
  padding: 15px;
  transition: transform 0.3s ease;
  color: #000;
  width: 350px;
}
.palette-card:hover {
  transform: translateY(-5px);
}

/* Card heading */
/* Card heading */
.palette-card h3 {
  margin-bottom: 10px;
  font-size: 1.4em;
  background: linear-gradient(
    81.02deg,
    rgb(250, 85, 96) -23.47%,
    rgb(177, 75, 244) 45.52%,
    rgb(77, 145, 255) 114.8%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Color Type, Website Type, Description */
.color-type,
.website-type,
.description {
  margin-bottom: 10px;
  line-height: 1.4em;
}

/* Colors Container */
.colors-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Individual Color Card */
.color-card {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  border: 1px solid #555;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 5px;
  text-align: center;
  transition: transform 0.3s ease;
}
.color-card:hover {
  transform: translateY(-3px);
}

/* Copy Button (top right corner) */
.copy-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  color: #fff;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  padding: 2px 6px;
  transition: background 0.3s ease;
}
.copy-btn:hover {
  background: rgba(0, 0, 0, 0.6);
}

/* Color Info (bottom text) */
.color-info {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  padding: 2px;
}
.color-info p {
  margin: 0;
  font-size: 0.75em;
  color: #fff;
}

/* Modal for Copy Confirmation */
.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 {
  background: #222;
  color: #fff;
  margin: 100px auto;
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
  position: relative;
  text-align: center;
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  transition: color 0.3s ease;
}
.close-btn:hover {
  color: #ccc;
}
.color-type,
.website-type {
  position: relative;
  padding-left: 20px;
}

.color-type::before,
.website-type::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: #000;
}
.search-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
}

#search-input {
  width: 20%;
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #b14df4;
  border-radius: 21px;
  transition: border-color 0.3s ease;
  background: transparent;
  color: #fff;
}

#search-input:focus {
  border-color: #666;
  outline: none;
}

/* pagination  */
/* ...existing code... */

/* pagination - updated to match chart folder style */
/* ...existing code... */

/* pagination - updated to match numbered style */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 5px;
}

.page-numbers-container {
    display: flex;
    gap: 5px;
}

.pagination-btn,
.page-number {
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    border: none;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn.nav-btn {
    background-color: #e0e0e0;
    color: #666;
}

.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-btn:hover:not(:disabled),
.page-number:hover:not(.active) {
    background-color: #e0e0e0;
}

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

.ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #666;
    font-size: 14px;
}

.no-results {
    text-align: center;
    padding: 20px;
    color: #edebeb;
    font-style: italic;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 20px auto;
    max-width: 400px;
}