/* === Global Style === */
body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #0a0a0a;
  color: #eaeaea;
  margin: 0;
  padding: 20px;
  text-align: center;
}

h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-shadow: 0 0 8px #00e0ff, 0 0 15px #ff004c;
  color: #ffffff;
}

h3 {
  color: #ffffff;
  margin-bottom: 10px;
  text-shadow: 0 0 6px #00e0ff;
}

.container {
  margin: 20px auto;
  max-width: 650px;
  background: rgba(20, 20, 20, 0.85);
  border: 2px solid #111;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 0 15px #00e0ff55, 0 0 25px #ff004c33;
}

/* === Input Upload === */
input[type="file"] {
  margin: 15px 0;
  padding: 10px;
  color: #fff;
  border: 1px solid #333;
  border-radius: 8px;
  background: #111;
  cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button {
  background: #00e0ff;
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  transition: 0.3s;
}

input[type="file"]::-webkit-file-upload-button:hover {
  background: #ff004c;
  color: #fff;
}

/* === Buttons & Icon Buttons === */
button, .icon-btn {
  background: linear-gradient(90deg, #00e0ff, #ff004c);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 10px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 10px #00e0ff88, 0 0 15px #ff004c55;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover, .icon-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #00e0ffcc, 0 0 25px #ff004caa;
}

button img, .icon-btn img {
  width: 24px;
  height: 24px;
}

/* === Menu (index.html) === */
.menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px;
  font-size: 1.2em;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(90deg, #00e0ff, #ff004c);
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.menu a:hover {
  background: linear-gradient(90deg, #ff004c, #00e0ff);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.5);
}

/* === Photo List / Image Preview (image-to-pdf.html) === */
.photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  justify-content: center;
}

.photo-item {
  position: relative;
  width: 120px;
  border: 1px solid #444;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 8px #00e0ff33, 0 0 12px #ff004c22;
}

.photo-item img {
  width: 100%;
  display: block;
}

.remove-btn {
  position: absolute;
  top: 3px;
  right: 3px;
  background: #ff004c;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-weight: bold;
  cursor: pointer;
}

/* === Canvas / Output Images === */
canvas, img {
  max-width: 100%;
  margin-top: 12px;
  border: 1px solid #444;
  border-radius: 8px;
  box-shadow: 0 0 10px #00e0ff33, 0 0 15px #ff004c22;
}

/* === PDF to Image Preview === */
.preview-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.page-container {
  position: relative;
  display: inline-block;
}

.download-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: linear-gradient(90deg, #00e0ff, #ff004c);
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9em;
  box-shadow: 0 0 8px #00e0ff88, 0 0 12px #ff004c55;
}

.download-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px #00e0ffcc, 0 0 18px #ff004caa;
}

/* === Cropper Container === */
.cropper-container {
  max-width: 100%;
  margin-top: 15px;
  border-radius: 8px;
  box-shadow: 0 0 10px #00e0ff44, 0 0 15px #ff004c33;
}

/* === Responsive === */
@media (max-width: 500px) {
  .container { margin: 15px; padding: 15px; }
  .menu a { font-size: 1.1em; padding: 12px; gap: 10px; }
  .menu img, button img, .icon-btn img { width: 22px; height: 22px; }
  .photo-item { width: 100px; }
}
