body {
  background: var(--background);
  color: var(--text-primary);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}
/*Actual container for the sets with in the container div*/
.setContainer {
  background-color: var(--card-bg);
  color: var(--text-primary);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  width: 300px;
  height: 300px;
  align-self: center;
  margin: 10px;
  padding: 24px 18px 18px 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(var(--frosted-glass-blur));
  -webkit-backdrop-filter: blur(var(--frosted-glass-blur));
  transition: box-shadow 0.3s, background 0.3s;
}
.setContainer:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background-color: rgba(28, 29, 41, 0.8);
}
/* Style for any set title */
.setTitle {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0 0 8px 0;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
/*Styles for the set metadata*/
.setMetaData {
  position: absolute;
  left: 20px; /* Match button's left margin */
  right: 20px; /* Match button's right margin */
  bottom: 5.5rem; /* Position a few pixels higher than the button */
  width: calc(100% - 40px); /* Match button's width */
  padding: 0px;
  background: linear-gradient(to top, rgba(28,29,41,0.95) 90%, rgba(28,29,41,0.0) 100%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  margin: 0;
}
.setDescription {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  border-radius: 0px !important;

  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: calc(1em * 1.2 * 4); /* 4 lines, 1.2 line-height */
}
#createNewSet {
  display: inline-block;
  background: var(--accent-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  margin: 1.5rem auto 0 auto;
  transition: background 0.2s;
  text-align: center;
}
#createNewSet:hover {
  background: var(--text-primary);
  color: var(--accent-blue);
}
#searchOrCreateSetWrapper{
  width: 100%;
  display: flex;
      flex-direction: column;

}
#setSearchWrapper {
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
}
#searchSets {
  width: 100%;
  flex: 1 1 auto;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0 1.5rem 0 3.5rem;
  min-height: 50px;
  font-size: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  background: var(--card-bg);
  color: var(--text-primary);
}
.plus-create-btn {
  position: absolute;
  left: 0.75rem;
  top: 40%;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;

  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, box-shadow 0.2s;
}
.plus-create-btn:hover, .plus-create-btn:focus {
  background: #3a8fe5;
  box-shadow: 0 4px 16px rgba(75, 156, 255, 0.25);
  outline: none;
}
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  height: 24px;
  width: 24px;
  margin-left: 0.4em;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23777'><path d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/></svg>");
  cursor: pointer;
}
.setSearchButton {
  color: var(--accent-blue);
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: -2.5rem;
  margin-top: 0.5rem;
  position: absolute;
  right: 0.75rem;
  top: 25%;
  transform: translateY(-50%);
  z-index: 2;
}
#results {
  max-height: 200px;
  display: flex;
  overflow-x: auto;
  margin-bottom: 30px;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: calc(100% - 20px);
  margin-top: 5px;
}
#results span {
  background: rgba(75, 156, 255, 0.15);
  color: var(--accent-blue);
  border-radius: 8px;
  padding: 6px 14px;
  margin: 5px;
  font-size: 1rem;
}
#contentWrapper {
  display: flex;
  width: 100%;
}
#generatedContent, #recentSetsContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 0;
  justify-items: center;
  align-items: stretch;
}
#recentSetsContainer {
  width: calc(100vw - 40px);
}
#recentSetsContainer div {
  display: inline-block;
}
#recentSetsContainer .setMetaData {
  display: inline-flex;
}
#userInfoSegmeant {
  margin-bottom: 25px;
}
#description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 0 auto 1.5rem auto;
  max-width: 700px;
  text-align: center;
  border-radius: 0px !important;
}
#userInfoSegmeant h1, h1 {
  color: var(--accent-blue);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
}
#userInfoSegmeant h2 {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
}
.meta-combined {
  width: 100%;
  text-align: left;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.01em;
  padding: 0;
  margin: 0;
  border-radius: 0px !important;
  display: block;
}
.meta-combined::before, .meta-combined::after {
  content: '';
}
.meta-combined .dot {
  color: var(--accent-blue);
  margin: 0 0.5em;
  font-weight: bold;
}
.setContainer {
  position: relative;
  padding-bottom: 2rem; /* Reserve space for floating button */
}
.setBottomBar {
  position: static;
  left: unset;
  right: unset;
  bottom: unset;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  z-index: 2;
  padding: 0;
  background: none;
}
.view-set-btn {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  margin: 0;
  padding: 1rem 2.5rem;
  background: var(--accent-blue);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1.05rem;
  text-align: center;
  text-decoration: none !important;
  transition: background-color 0.3s, color 0.2s, transform 0.2s;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(75, 156, 255, 0.2);
  letter-spacing: 0.01em;
  z-index: 3;
  width: calc(100% - 40px) !important;
}
.view-set-btn:hover, .view-set-btn:focus {
  background: #3a8fe5;
  color: #fff;
  outline: none;
  text-decoration: none !important;
  transform: translateY(-2px);
  transform: translateX(-50%);

}