.profile-photo-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: rgba(59, 130, 246, 0.1);
  border: 2px dashed #3b82f6;
  margin: 0 auto 20px;
}

/* General reset for margin, padding, and box-sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
  color: #f4f4f9;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 10px;
  flex-direction: column;
  overflow-x: hidden;
}

.container {
  text-align: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 15px;
  box-sizing: border-box;
  position: relative;
}

.back-button {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #1a1a1a;
  border: 1px solid #3b82f6;
  color: #3b82f6;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.back-button:hover {
  background: #3b82f6;
  color: white;
}

.hidden {
  display: none !important;
}

/* Upload Area */
.upload-area {
  position: relative;
  background: transparent;
  width: 100%;
  max-width: 250px;
  height: 250px;
  color: #a1a1a1;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 15px;
  border: 2px dashed #3b82f6;
}

.upload-area:hover {
  color: #888888;
  border-color: #2563eb;
}

.upload-area.dragover {
  background-color: rgba(59, 130, 246, 0.1);
  border-color: #2563eb;
}

#fileInput {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

/* Preview Container */
.preview-container {
  text-align: center;
  padding: 15px 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
  border: 2px dashed #3b82f6;
  width: 95%;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
}

.image-preview {
  width: 100%;
  max-width: 250px;
  height: 250px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  object-fit: contain;
}

/* Button Styling */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

button {
  width: 100%;
  padding: 12px 24px;
  margin: 5px 0;
  border: none;
  background: #007bff;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 16px;
}

button:hover {
  background: #0056b3;
}

#backButton {
  background: #dc3545;
}

#backButton:hover {
  background: #c82333;
}

.compression-selector {
  margin: 30px auto;
  width: 100%;
  max-width: 300px;
}

.quality-slider {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  background: #29293f;
  outline: none;
  border-radius: 4px;
  margin: 10px 0;
}

.quality-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  transition: background 0.3s ease;
}

.quality-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  transition: background 0.3s ease;
}

.quality-slider::-webkit-slider-thumb:hover,
.quality-slider::-moz-range-thumb:hover {
  background: #2563eb;
}

#qualityValue {
  font-size: 16px;
  color: #f4f4f9;
  margin: 10px 0;
}

#errorMessage {
  color: #dc3545;
  margin: 10px 0;
  font-size: 14px;
}

#infoMessage {
  color: #3b82f6;
  margin: 10px 0;
  font-size: 14px;
}

h1 {
  font-size: 24px;
  margin-bottom: 20px;
}

h2 {
  font-size: 22px;
  margin-bottom: 18px;
}

.container {
  padding: 15px;
  max-width: 300px;
}

.upload-area {
  max-width: 250px;
  height: 250px;
  margin: 0 auto;
  padding: 15px;
}

.image-preview {
  max-width: 250px;
  height: 250px;
}

.preview-container {
  max-width: 300px;
}

.button-group {
  max-width: 300px;
}

.compression-selector {
  max-width: 300px;
  margin: 15px 0;
}

button {
  padding: 12px 24px;
  font-size: 18px;
}

.footer {
  padding: 8px;
  font-size: 11px;
  color:#94a3b8;
}

.footer a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 600;
}

.footer a:hover {
  color: #3b82f6;
}

.error-message {
  color: #dc3545;
  margin-top: 10px;
  font-size: 14px;
}

.info-message {
  color: #3b82f6;
  margin-top: 10px;
  font-size: 14px;
}

.preview-container {
  max-width: 300px;
}