body {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  color: #334155;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.drop-zone {
  transition: all 0.3s ease;
  border: 2px dashed #cbd5e1;
  background-color: rgba(255, 255, 255, 0.7);
}
.drop-zone.dragover {
  transform: scale(1.02);
  border-color: #3b82f6;
  background-color: rgba(147, 197, 253, 0.2);
}
.preview-container {
  transition: opacity 0.3s ease;
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid #e2e8f0;
}
canvas {
  display: none;
}
/* Custom range slider */
input[type="range"] {
  -webkit-appearance: none;
  height: 6px;
  background: #e2e8f0;
  border-radius: 5px;
  background-image: linear-gradient(#93c5fd, #3b82f6);
  background-size: 90% 100%;
  background-repeat: no-repeat;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
  transition: all 0.2s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}
input[type="range"]::-moz-range-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
  border: none;
  transition: all 0.2s ease;
}
input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.1);
}
.size-option {
  transition: all 0.2s ease;
  background-color: #e2e8f0;
}
.size-option:hover {
  background-color: #93c5fd;
  color: white;
}
.size-option.active {
  background-color: #3b82f6;
  color: white;
}
.processing-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.92);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.spinner {
  border: 4px solid rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  border-top: 4px solid #3b82f6;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.tooltip {
  position: relative;
  display: inline-block;
}
.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: #3b82f6;
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 12px;
}
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}
.format-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #3b82f6;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

/* Hide any images that might appear outside the preview areas */
body > img:not([class*="preview"]) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  position: absolute !important;
  left: -9999px !important;
}

.card {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

input, select {
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid #e2e8f0;
  color: #334155;
  transition: all 0.2s ease;
}

input:focus, select:focus {
  border-color: #93c5fd;
  outline: none;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.3);
}

.btn-primary {
  background: linear-gradient(to bottom, #3b82f6, #2563eb);
  color: white;
  border: none;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: linear-gradient(to bottom, #2563eb, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: linear-gradient(to bottom, #64748b, #475569);
  color: white;
  border: none;
  box-shadow: 0 2px 4px rgba(100, 116, 139, 0.3);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: linear-gradient(to bottom, #475569, #334155);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(100, 116, 139, 0.4);
}

.text-muted {
  color: #64748b;
}

h1, h2, h3 {
  font-weight: 600;
  color: #1e40af;
}

footer {
  color: #64748b;
}

/* Smooth transitions for all interactive elements */
* {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Upload attempt notification */
.upload-attempt-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f59e0b;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.upload-attempt-notification.show {
  opacity: 1;
  pointer-events: auto;
}

.upload-attempt-notification i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.upload-attempt-notification .close-btn {
  margin-left: 15px;
  cursor: pointer;
  font-weight: bold;
}