* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  padding-top: 7%;
  font-family: sans-serif;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.08) 1px, transparent 1px) 0 0,
              radial-gradient(circle, rgba(0, 0, 0, 0.08) 1px, transparent 1px) 0 0;
  background-size: 20px 20px;
  background-color: #f9f9f9;
  color: #333;
  height: 100%;
}

h1, h2 {
  margin: 1rem 0;
  text-align: center;
  font-family: 'Inter', sans-serif;
}

.page {
  display: none;
  padding: 1rem;
  text-align: center;

  padding-bottom: 100px;
}

.page h3 {
  text-align: left;
}

.page.active {
  display: block;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0.1rem auto;
  width: max-content;
}
.menu-list li {
  margin: 0.7rem 0;
}
.nav-button {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background: #fff;
  border: 0.3px solid #fff;
  border-radius: 25px;
  padding: 0rem;
}
.nav-button i

.sticker-packs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sticker-pack {
  position: relative;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 1rem;
  cursor: pointer;
}
.sticker-pack:hover {
  background: #eee;
}
.sticker-pack h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.sticker-pack .pack-row {
  display: flex;
  gap: 0.5rem;
}
.sticker-pack .pack-row img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}

.sticker-pack-content {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sticker-pack-content .sticker-img {
  width: calc(25% - 0.5rem);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
}

.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-around;
  background: #fff;
  border-top: 1px solid #ccc;
  padding: 0.5rem 0;
}
.bottom-nav-button {
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0.5rem;
}
.bottom-nav-button img {
  width: auto;
  height: auto;
}
.bottom-nav-button.active {
  opacity: 1;
}

.loader {
  position: fixed;
  z-index: 9999;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);

  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(3px);

  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);

  text-align: center;
}
.loader .spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #ccc;
  border-top-color: #999;
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.hidden {
  display: none;
}

.pack-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  margin-top: 1rem;
}

.pack-actions .action-btn {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.pack-actions .action-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.pack-actions .action-btn[data-pressed="true"] img {
  transform: scale(1.04);
  opacity: 0.8;
}

.page-hints-top {
  text-align: center;
  padding-left: 10px;
}

.create-hints {
  margin: 1rem 0;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  color: #555;
}

#page-create .create-hints {
  text-align: left;
}

.upload-btn {
  margin-top: -0.8rem;
  /* padding-left: 5%; */
 
}
.upload-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.upload-btn:hover {
  background: #eaeaea;
}

.photo-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-block-end: 20px;
}

.preview-item {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  background: #eee;
}
.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 18px;
  text-align: center;
  padding: 0;
}
.singlePreview {
  position: relative;
}
.preview-remove:hover {
  background: rgba(255,0,0,0.8);
}

.singlePreview img {
  width: 100%;
  height: auto;
}

.big-btn {
  margin-top: 1rem;
  display: inline-block;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
}
.big-btn:hover {
  background: #0069d9;
}

.sticker-pack {
  background-image: url('assets/icons/bg-vector.svg');
  background-size: cover;
  background-position: center;
}

#backToPacks {
  background-color: #0069d9;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#backToPacks:hover {
  background-color: #0069d9;
  transform: translateX(-5px);
}

#backToPacks:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(72, 160, 72, 0.6);
}

#backToPacks:active {
  transform: translateX(0);
}

.upload-progress-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.progress-bar-wrapper {
  text-align: center;
  background-color: #fff;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  width: 100%;
}

progress {
  width: 100%;
  height: 30px;
  border-radius: 10px;
  appearance: none;
  -webkit-appearance: none;
}

progress::-webkit-progress-bar {
  background-color: #f3f3f3;
  border-radius: 10px;
}

progress::-webkit-progress-value {
  background-color: #0069d9;
  border-radius: 10px;
}

#progressText {
  margin-top: 10px;
  font-size: 18px;
  color: #333;
}

#completionMessage h1 {
  text-align: center;
  font-size: 36px;
  color: #0069d9;
  margin-top: 50px;
}

#uploadedImages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

#uploadedImages img {
  max-width: 200px;
  margin: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.visually-hidden-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

.likes-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e74c3c;
  color: #fff;
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 12px;
}
