* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #000;
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
header {
  text-align: center;
  padding: 2rem 1rem;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: relative;
}
.lang-switcher {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 100;
}
.lang-switcher select {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
#upload-section {
  width: 100%;
  max-width: 500px;
  text-align: center;
  animation: fadeIn 0.5s ease-out;
}
.drop-area {
  border: 3px dashed #ddd;
  border-radius: 12px;
  padding: 4rem 2rem;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.drop-area:hover, .drop-area.dragover {
  border-color: #4a90e2;
  background: #f8f9ff;
  transform: scale(1.02);
}
.drop-area i {
  font-size: 3rem;
  color: #4a90e2;
  margin-bottom: 1rem;
}
#file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
#editor-section {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: slideUp 0.5s ease-out;
}
.image-container {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 500px;
  height: auto;
  min-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}
#original-img {
  max-width: 100%;
  max-height: 450px;
  object-fit: contain;
  display: block;
}
.zoom-slider-wrapper {
  width: 100%;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.5rem;
}
.zoom-label {
  font-size: 0.9rem;
  color: #333;
}
.zoom-slider {
  width: 100%;
  accent-color: #4a90e2;
}

/* Custom styled inputs & selections for the resizer module */
#dimensions-controls input[type="number"], 
#editor-section select {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.4rem;
  outline: none;
  transition: border-color 0.2s;
}
#dimensions-controls input[type="number"]:focus, 
#editor-section select :focus {
  border-color: #4a90e2;
}

#download-btn {
  background: linear-gradient(135deg, #4a90e2, #357abd);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(74,144,226,0.3);
  transition: all 0.3s ease;
}
#download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(74,144,226,0.4);
}
.seo-section {
  padding: 2rem 1rem;
  max-width: 60%;
  margin: 0 auto;
}
footer {
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  padding: 2rem 1rem;
  text-align: center;
  margin-top: auto;
}
.footer-links {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.footer-links a {
  color: #4a90e2;
  text-decoration: none;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
  .seo-section { max-width: 100%; }
  h1 { font-size: 2rem; }
}