body {
  margin: 0;
  padding: 20px;
  background: #121212;
  color: #e5e5e5;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #00e0d1;
  margin-bottom: 4px;
  text-align: center;
}

.version {
  font-size: 0.9rem;
  color: #8e8e8e;
  margin-bottom: 20px;
  text-align: center;
}

.drop-zone {
  background: #1c1c1c;
  border: 2px dashed #00e0d1;
  border-radius: 16px;
  width: 450px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 500;
  color: #b0b0b0;
  cursor: pointer;
  text-align: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.drop-zone:hover {
  background: #242424;
  border-color: #00ffc8;
  transform: scale(1.02);
}

.sub-text {
  font-size: 0.9rem;
  color: #777;
}

.preview-wrapper {
  position: relative;
  display: inline-block;
}

.image-area {
  position: relative;
  display: inline-block;
}

.preview-image {
  display: block;
  max-width: 800px;
  max-height: 500px;
  border: 1px solid #333;
  border-radius: 8px;
}

.image-container {
  display: flex;
  overflow-x: auto;
  padding: 10px 0;
  width: 90%;
  max-width: 900px;
  gap: 8px;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  scroll-behavior: smooth;
}

.image-container img {
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s;
}

.image-container img:hover {
  transform: scale(1.1);
}

.marker-buttons {
  z-index: 20;
}

.marker-buttons button {
  background: #00e0d1;
  border: none;
  color: #121212;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  margin-bottom: 6px;
  transition: transform 0.2s;
}

.marker-buttons button:hover {
  transform: scale(1.1);
}

.marker {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: red;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: grab;
  z-index: 10;
}

.marker:active {
  cursor: grabbing;
}

.color-popup {
  position: fixed;
  background: #1c1c1c;
  padding: 15px;
  border: 2px solid #00e0d1;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  z-index: 1000;
}

.color-popup input[type="color"] {
  cursor: pointer;
  border: none;
  background: transparent;
}

.color-popup button {
  background: #00e0d1;
  border: none;
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.color-popup button:hover {
  background: #00ffc8;
}

footer {
  margin-top: 20px;
  color: #666;
  font-size: 0.85rem;
}

.marker {
  width: 8px;
  /* smaller dot */
  height: 8px;
  border-radius: 50%;
  border: 1px solid #fff;
  /* thin white outline for visibility */
  background: red;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: grab;
  z-index: 10;
}

.marker:active {
  cursor: grabbing;
}

.fill-tool button {
  background: #ffcc00;
  border: none;
  color: #121212;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  margin-bottom: 6px;
  transition: transform 0.2s;
}

.fill-tool button:hover {
  transform: scale(1.1);
}

.fill-color-popup {
  position: fixed;
  background: #1c1c1c;
  padding: 12px;
  border: 2px solid #ffcc00;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2000;
}

.fill-color-popup input[type="color"] {
  cursor: pointer;
}

.fill-color-popup button {
  background: #ff5555;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: bold;
  color: white;
  cursor: pointer;
}

.fill-color-popup button:hover {
  background: #ff7777;
}

#previewCanvas {
  background-color: rgba(0, 0, 0, 0.2);
  /* light black with 20% opacity */
}

/* ===== Light Theme Styles ===== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  /* light background */
  color: #111;
  /* dark text */
  text-align: center;
}

.title {
  font-size: 24px;
  margin-top: 10px;
  color: #222;
}

.version {
  font-size: 14px;
  color: #555;
  margin-bottom: 15px;
}

.drop-zone {
  border: 2px dashed #bbb;
  background: #fff;
  color: #333;
  padding: 40px;
  margin: 20px auto;
  width: 80%;
  cursor: pointer;
  border-radius: 8px;
}

.drop-zone:hover {
  background: #f0f0f0;
}

.preview-wrapper {
  position: relative;
  display: inline-block;
  margin: 20px;
  padding: 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#previewCanvas {
  max-width: 100%;
  border: 1px solid #ccc;
  background-color: transparent;
  /* stays transparent */
}

.marker-buttons button,
.fill-tool button {
  margin: 5px 0;
  padding: 8px 10px;
  background: #eaeaea;
  border: 1px solid #ccc;
  border-radius: 6px;
  color: #111;
  cursor: pointer;
}

.marker-buttons button:hover,
.fill-tool button:hover {
  background: #ddd;
}

.image-container img {
  width: 100px;
  margin: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 6px;
}

.image-container img:hover {
  border-color: #888;
}

footer {
  margin-top: 30px;
  padding: 10px;
  font-size: 12px;
  color: #666;
}

/* ===== Smooth Horizontal Scroll for Image Container ===== */
.image-container {
  display: flex;
  overflow-x: auto;
  /* enable horizontal scroll */
  gap: 10px;
  /* space between images */
  padding: 10px;
  scroll-behavior: smooth;
  /* smooth scroll animation */
  -webkit-overflow-scrolling: touch;
  /* inertia scrolling on iOS */
  will-change: scroll-position;
  /* GPU acceleration hint */
}

.image-container img {
  width: 100px;
  /* thumbnail size */
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  /* prevent images from shrinking */
}

.image-container img:hover {
  border-color: #888;
}

/* Footer button */
.license-btn {
  margin-left: 15px;
  padding: 5px 12px;
  background: #eaeaea;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.license-btn:hover {
  background: #ddd;
}

/* Popup overlay */
.license-popup {
  display: none;
  /* hidden by default */
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* dark transparent bg */
  align-items: center;
  justify-content: center;
}


/* Popup box */
.license-content {
  background: #fff;
  color: #111;
  padding: 20px;
  width: 400px;
  max-width: 90%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: left;
  position: relative;
}

/* Close button */
.close-btn {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #555;
}

.close-btn:hover {
  color: #000;
}

.license-popup {
  animation: fadeIn 0.3s ease;
}

.license-content {
  animation: scaleUp 0.3s ease;
}

@keyframes fadeIn {
  from {
    background-color: rgba(0, 0, 0, 0);
  }

  to {
    background-color: rgba(0, 0, 0, 0.5);
  }
}

@keyframes scaleUp {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.license-popup {
  backdrop-filter: blur(5px);
}

.header {
  display: flex;
  justify-content: center;
  /* center as a group */
  align-items: baseline;
  /* align text baselines */
  gap: 10px;
  margin-top: 10px;
}

.title {
  font-size: 24px;
  color: #222;
  line-height: 1;
  /* make sure it's tight */
}

.version {
  font-size: 14px;
  color: #fff;
  /* white text */
  background: #666;
  /* grey fill */
  border: 1px solid #666;
  /* match border to fill */
  border-radius: 6px;
  padding: 2px 6px;
  line-height: 1;
  position: relative;
  top: -2px;
}

/* ========== GLOBAL DARK MODE ========== */
body {
  background-color: #121212;
  color: #ffffff;
  font-family: Arial, sans-serif;
}

/* Header */
.header {
  background-color: #1e1e1e;
  color: #ffffff;
}

/* Footer */
footer {
  background-color: #1e1e1e;
  color: #ffffff;
  padding: 10px;
  text-align: center;
  border-top: 1px solid #333;
}

/* Buttons */
button {
  background-color: #2b2b2b;
  color: #ffffff;
  border: 1px solid #444;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #3a3a3a;
}

/* Drop zone */
.drop-zone {
  background-color: #1e1e1e;
  color: #ffffff;
  border: 2px dashed #555;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
}

/* Sub-text inside drop-zone */
.sub-text {
  color: #aaaaaa;
}

/* License popup */
.license-popup .license-content {
  background-color: #1e1e1e;
  color: #ffffff;
  border: 1px solid #333;
  padding: 15px;
  border-radius: 8px;
}

/* Marker buttons */
.marker-buttons button,
.fill-tool button {
  background-color: #2b2b2b;
  color: #fff;
  border: 1px solid #444;
}

.marker-buttons button:hover,
.fill-tool button:hover {
  background-color: #3a3a3a;
}

/* ========== EXCLUDE CANVAS & THUMBNAILS ========== */
#previewCanvas {
  background-color: #fff !important;
}

.image-container img {
  filter: none !important;
}

/* View License button */
.license-btn {
  background-color: #2b2b2b !important;
  color: #ffffff !important;
  border: 1px solid #444;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.license-btn:hover {
  background-color: #3a3a3a !important;
}

/* Header container */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  /* Perfect vertical centering */
  gap: 14px;
  /* space between title & version */
  padding: 15px 0;
  background: transparent;
}

/* Main Title Styling */
.header .title {
  font-family: 'Poppins', sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  cursor: default;
  position: relative;
  user-select: none;
  line-height: 1;
  /* Fixes baseline alignment */
  display: flex;
  align-items: center;
  /* Ensures internal centering */
}

/* Title Glow Effect */
.header .title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 100%;
  filter: blur(15px);
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  opacity: 0.4;
  z-index: -1;
  border-radius: 8px;
}

/* Version Styling */
/* Version Badge Styling — Perfect Vertical Alignment */
.header .version {
  font-size: 16px;
  font-weight: 600;
  color: #bbbbbb;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  box-shadow: 0 0 6px rgba(0, 114, 255, 0.3);
  backdrop-filter: blur(5px);
  letter-spacing: 1px;
  line-height: 1;

  /* 👇 This is the fix */
  position: relative;
  top: 2px;
  /* Moves badge slightly down */
}

/* Creator Label Styling */
.header .creator {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: #00c6ff;
  text-transform: uppercase;
  margin-bottom: 4px;
  text-align: center;
  opacity: 0.8;
  user-select: none;
  position: relative;
  top: 2px;
}

.header {
  display: flex;
  flex-direction: column;
  /* Stack creator, title, version */
  align-items: center;
  padding: 15px 0;
  gap: 2px;
}

/* Hide the ugly default file input */
#fileInput {
  display: none !important;
}

/* Shortcuts button styling */
.shortcuts-btn {
  background-color: #2b2b2b;
  color: #ffffff;
  border: 1px solid #444;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 6px;
  transition: background-color 0.2s ease;
}

.shortcuts-btn:hover {
  background-color: #3a3a3a;
}

/* Default Drop Zone Styling */
.drop-zone {
  background-color: #181818;
  color: #fff;
  border: 2px dashed #444;
  padding: 25px;
  text-align: center;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 114, 255, 0.2);
  cursor: pointer;
  user-select: none;
}

/* Hover State */
.drop-zone:hover {
  border-color: #00c6ff;
  box-shadow: 0 0 15px rgba(0, 114, 255, 0.5);
  transform: scale(1.02);
  color: #fff;
  /* 👈 Force white text */
  background-color: #181818;
  /* 👈 Keep dark background */
}

/* Drag Over State (When files are being dragged) */
.drop-zone.drag-over {
  border-color: #00c6ff;
  background-color: #202020;
  /* Slightly brighter */
  box-shadow: 0 0 20px rgba(0, 114, 255, 0.6);
  color: #fff;
  /* Force white text */
}

.image-container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  padding: 8px;
  scroll-behavior: smooth;
  /* smooth scrolling */
}

/* Hide ugly scrollbars but keep scrolling */
.image-container::-webkit-scrollbar {
  height: 6px;
}

.image-container::-webkit-scrollbar-thumb {
  background-color: #444;
  border-radius: 3px;
}

.image-container::-webkit-scrollbar-track {
  background-color: transparent;
}

/* Popup Window */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background: #1e1e1e;
  padding: 25px;
  border-radius: 16px;
  text-align: center;
  width: 350px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  font-family: "Poppins", sans-serif;
  color: #fff;
}

.progress-container {
  width: 100%;
  height: 18px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin: 15px 0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00ffcc, #00aaff);
  border-radius: 10px;
  transition: width 0.2s ease-in-out;
}

#progressText {
  font-size: 14px;
  margin-top: 5px;
  opacity: 0.8;
}

/* Toast Notification */
.toast {
  visibility: hidden;
  min-width: 280px;
  background: #1e1e1e;
  color: #00ffcc;
  text-align: center;
  border-radius: 12px;
  padding: 14px 20px;
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  z-index: 99999;
  transition: all 0.4s ease;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.export-choice-popup {
  backdrop-filter: blur(4px);
}

.export-choice-content {
  width: 460px;
  max-width: calc(100vw - 32px);
  background: linear-gradient(170deg, #1a1f2b 0%, #10151f 100%);
  border: 1px solid rgba(0, 255, 204, 0.25);
  position: relative;
}

.export-choice-subtitle {
  margin-top: -6px;
  margin-bottom: 16px;
  opacity: 0.85;
  font-size: 13px;
}

.export-choice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.export-choice-btn {
  text-align: left;
  border-radius: 12px;
  padding: 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.export-choice-btn small {
  font-size: 11px;
  opacity: 0.85;
}

.export-choice-btn:hover {
  transform: translateY(-2px);
}

.zip-choice-btn:hover {
  border-color: rgba(0, 255, 204, 0.7);
  box-shadow: 0 10px 24px rgba(0, 255, 204, 0.2);
}

.video-choice-btn:hover {
  border-color: rgba(255, 168, 77, 0.75);
  box-shadow: 0 10px 24px rgba(255, 168, 77, 0.2);
}

/* Base Button Style */
button {
  position: relative;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #fff;
  background: #222;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 0 0 rgba(0, 255, 150, 0);
}

/* BACK GLOW using box-shadow */
button:hover {
  box-shadow:
    0 0 15px rgb(255, 0, 68),
    0 0 30px rgb(255, 0, 64),
    0 0 45px rgba(0, 255, 149, 0);
  transform: translateY(-2px);
}

.tag {
  display: inline-block;
  background: #555;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 8px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.version-tag {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(50, 50, 50, 0.8);
  padding: 6px 12px;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(6px);
}

.version-tag .dot {
  color: #00ff6a;
  /* bright green */
  font-size: 22px;
  /* bigger dot */
  line-height: 0;
}

#timer {
  position: fixed;
  top: 10px;
  left: 10px;
  font-size: 20px;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
  color: red;
  z-index: 9999;
}

body {
  background: linear-gradient(135deg, #0f0f0f, #1e1e1e);
  font-family: "Poppins", sans-serif;
  color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
}

.timer-container {
  background: #1c1c1c;
  padding: 40px 60px;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timer-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.7);
}

#timer {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: #00ff88;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

button {
  background: #00ff88;
  border: none;
  padding: 12px 32px;
  border-radius: 30px;
  cursor: pointer;
  color: #111;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
  background: #00e67a;
  transform: scale(1.05);
}

button:disabled {
  background: #555;
  color: #aaa;
  cursor: not-allowed;
  transform: none;
}

#timer.expired {
  display: inline-block;
  background-color: #ff0033;
  /* red background */
  color: #fff;
  /* white text */
  padding: 5px 12px;
  /* small padding */
  border-radius: 12px;
  /* rounded tag look */
  font-size: 1rem;
  /* smaller than main timer */
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.update-tag {
  display: inline-block;
  background-color: #22834c;
  /* blue */
  color: #fff;
  padding: 4px 10px;
  margin-left: 10px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.update-tag:hover {
  background-color: #237e46;
  transform: scale(1.05);
}

/* Fullscreen video splash */
#introVideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 9999;
  background: black;
}

/* Hide main content initially */
#mainContent {
  display: none;
}

#introVideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 9999;
  background: black;
}

#mainContent {
  display: none;
}

#introVideo {
  position: fixed;
  /* Keep it fixed to viewport */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 99999;
  /* Make sure it's above everything */
  background: black;
}

/* Hide mouse cursor over the video */
#introVideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 99999;
  background: black;
  cursor: none;
  /* hides mouse */
}

#timer {
  display: inline-block;
  background-color: #444;
  /* dark grey background */
  color: #fff;
  /* white text */
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  font-family: "Segoe UI", sans-serif;
  font-size: 14px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

#timer.expired {
  background-color: #ff4d4d;
  /* red bg when expired */
  color: #fff;
  font-weight: bold;
}

/* --- Full Blur Timed Popup --- */
.blur-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9998;
}

.blur-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* Popup Box */
.timed-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  background: rgba(25, 25, 25, 0.85);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color: #fff;
  font-family: "Poppins", sans-serif;
  padding: 26px 48px;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
  z-index: 9999;
}

.timed-popup.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

/* === Refresh Popup Styles === */
.refresh-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 9999;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  padding-top: 20vh;
}

.refresh-box {
  background: #111;
  display: inline-block;
  padding: 25px 40px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.refresh-box h2 {
  margin-bottom: 15px;
  font-weight: 600;
}

.progress-container {
  width: 300px;
  height: 10px;
  background: #333;
  border-radius: 5px;
  overflow: hidden;
  margin: 15px auto;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: #ff4444;
  transition: width 1s linear;
}

.cancel-hint {
  margin-top: 10px;
  font-size: 14px;
  color: #ff8888;
  font-weight: 600;
  text-shadow: 0 0 8px #ff4444;
  animation: pulse 1.2s infinite alternate;
}

@keyframes pulse {
  from {
    opacity: 1;
  }

  to {
    opacity: 0.6;
  }
}

/* === Logs System === */
.logs-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  background: #111;
  color: #fff;
  border: 1px solid #444;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all 0.2s ease;
}

.logs-btn:hover {
  background: #222;
  border-color: #666;
}

.logs-panel {
  position: fixed;
  bottom: -300px;
  left: 0;
  width: 100%;
  height: 300px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
  color: #fff;
  z-index: 999;
  border-top: 1px solid #333;
  transition: bottom 0.3s ease;
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
}

.logs-panel.active {
  bottom: 0;
}

.logs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #111;
  border-bottom: 1px solid #333;
  font-weight: 600;
}

.clear-logs {
  background: none;
  border: 1px solid #555;
  color: #ccc;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.clear-logs:hover {
  background: #ff4444;
  color: white;
  border-color: #ff4444;
}

.logs-content {
  flex: 1;
  padding: 10px 20px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
}

.logs-content::-webkit-scrollbar {
  width: 6px;
}

.logs-content::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 3px;
}

/* === Recommended Softwares Section === */
.recommended-softwares {
  margin-top: 40px;
  padding: 15px 0;
  border-top: 1px solid #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ccc;
  font-family: 'Poppins', sans-serif;
}

.rec-title {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.5px;
}

.rec-list {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
}

.rec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ccc;
  opacity: 0.9;
  transition: 0.2s ease;
  font-weight: 500;
  font-size: 14px;
}

.rec-item:hover {
  opacity: 1;
  transform: scale(1.05);
  color: #fff;
}

.rec-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.1));
}

.image-counter {
  z-index: 1000;
  /* was 99999 – this is the problem */
  position: fixed;
  top: 12px;
  right: 200px;

  background: #101010;
  color: #00ffd5;
  padding: 6px 14px;
  border-radius: 999px;

  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  font-family: Poppins, sans-serif;

  box-shadow: 0 0 12px rgba(0, 255, 213, .35);

  user-select: none;
}

@keyframes counterSlide {
  0% {
    transform: translateY(-10px) scale(0.95);
    opacity: 0;
  }

  60% {
    transform: translateY(4px) scale(1.05);
    opacity: 1;
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

.image-counter.animate {
  animation: counterSlide 0.35s ease-out;
}

.toast {
  backdrop-filter: blur(10px);
  background: rgba(20, 20, 20, .75);
}
