/* =====================================================
   OyeTools - Universal Pure White Clean Theme
   ===================================================== */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #000000; /* Pure Black text */
  background: #ffffff; /* Pure white background */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

body::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Header Sections */
header {
  text-align: center;
  padding: 2.5rem 1rem;
  background: #ffffff;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}

.lang-switcher {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 100;
}

.lang-switcher select {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #ffffff;
  color: #000000;
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

header p {
  font-size: 1.1rem;
  color: #444444;
  max-width: 600px;
  margin: 0 auto;
}

/* Main Workspace Layout */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Upload Section Style */
#upload-section {
  width: 100%;
  max-width: 500px;
  text-align: center;
  animation: fadeIn 0.5s ease-out;
}

.drop-area {
  border: 3px dashed #cccccc;
  border-radius: 16px;
  padding: 5rem 2rem;
  background: #ffffff;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.drop-area:hover, .drop-area.dragover {
  border-color: #4a90e2;
  background: #fdfdfd;
  transform: scale(1.01);
  box-shadow: 0 10px 30px rgba(74,144,226,0.08);
}

.drop-area i {
  font-size: 3.5rem;
  color: #4a90e2;
  margin-bottom: 1.5rem;
}

.drop-area p {
  color: #111111;
  font-size: 1.2rem;
  font-weight: 600;
}

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

/* Editor Workspace Section */
#editor-section {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: slideUp 0.5s cubic-bezier(0.1, 0.8, 0.3, 1);
}

/* Interactive View Workspace Box */
.image-container {
  position: relative;
  background: #fdfdfd;
  border: 1px dashed #dee2e6;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.02), 0 4px 25px rgba(0,0,0,0.05);
  max-width: 100%;
  max-height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#original-img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

/* Draggable Blur Box Wrapper Layer */
#blur-box {
  position: absolute;
  cursor: move;
  border: 1.5px solid #4a90e2;
  box-shadow: 0 0 0 4000px rgba(0, 0, 0, 0.3); /* Dark overlay around selection */
  overflow: hidden;
  z-index: 10;
}

#blur-bg-mirror {
  position: absolute;
  width: 10000px; /* Big boundary pool allocation */
  height: 10000px;
  background-repeat: no-repeat;
  transform-origin: top left;
  z-index: -1;
}

/* Geometry Shape Filters */
.rect-blur { border-radius: 0; }
.circle-blur { border-radius: 50%; }

/* Resizable Node Blue Handles (As requested from screenshot) */
.handle {
  position: absolute;
  width: 11px;
  height: 11px;
  background-color: #4a90e2;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  z-index: 20;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* 8-Point Axis Alignment Framework mapping setup */
.tl { top: -6px; left: -6px; cursor: nwse-resize; }
.tc { top: -6px; left: calc(50% - 6px); cursor: ns-resize; }
.tr { top: -6px; right: -6px; cursor: nesw-resize; }
.ml { top: calc(50% - 6px); left: -6px; cursor: ew-resize; }
.mr { top: calc(50% - 6px); right: -6px; cursor: ew-resize; }
.bl { bottom: -6px; left: -6px; cursor: nesw-resize; }
.bc { bottom: -6px; left: calc(50% - 6px); cursor: ns-resize; }
.br { bottom: -6px; right: -6px; cursor: nwse-resize; }

/* Control Wrapper Panel Box */
.zoom-slider-wrapper {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.btn-group-wrapper {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 0.5rem;
}

/* Interactive Premium Selection Buttons Styles */
.btn-outline-dark {
  border-radius: 8px !important;
  padding: 0.65rem 1rem !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600 !important;
  transition: all 0.2s ease;
  flex: 1;
}

.btn-outline-dark.active {
  background-color: #4a90e2 !important;
  color: #ffffff !important;
  border-color: #4a90e2 !important;
}

.zoom-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #222222;
  display: flex;
  justify-content: space-between;
}

.zoom-label span:last-child {
  color: #4a90e2;
  font-weight: 700;
}

.zoom-slider {
  width: 100%;
  height: 6px;
  border-radius: 5px;
  outline: none;
  margin: 0.5rem 0;
}

/* Download Action Primary Sticky Button */
#download-btn {
  background: linear-gradient(135deg, #4a90e2, #357abd);
  color: #ffffff;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  max-width: 400px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(74,144,226,0.35);
}

#download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74,144,226,0.45);
  filter: brightness(1.05);
}

#download-btn:active {
  transform: translateY(0);
}

/* SEO Content Panels Footer Geometry */
.seo-section {
  background: #ffffff;
  padding: 3rem 1rem;
  color: #000000;
  border-top: 1px solid #f5f5f5;
}

.seo-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #000000;
  text-align: center;
  letter-spacing: -0.5px;
}

.seo-section p {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  color: #333333;
  line-height: 1.8;
  text-align: justify;
}

/* Desktop View Width Limiter (60% Centered Grid for SEO Reading Ease) */
@media (min-width: 769px) {
  .seo-section {
    max-width: 60%;
    margin: 0 auto;
  }
}

/* Footer Panel Styling */
footer {
  background: #ffffff;
  border-top: 1px solid #eeeeee;
  padding: 2.5rem 1rem;
  text-align: center;
  margin-top: auto;
}

.footer-links {
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: #4a90e2;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.footer-links a:hover {
  color: #357abd;
  text-decoration: underline;
}

.copyright {
  color: #777777;
  font-size: 0.9rem;
  font-weight: 400;
}

/* Animation Controllers */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Viewports Framework Adapters */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  header p { font-size: 1rem; }
  main { padding: 2rem 1rem; }
  .drop-area { padding: 4rem 1rem; }
  .seo-section { width: 100%; padding: 2rem 1rem; }
  .footer-links { gap: 0.75rem; }
  .footer-links a { font-size: 0.85rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  main { padding: 1.5rem 0.5rem; }
  .zoom-slider-wrapper, #download-btn { max-width: 100%; }
  .btn-group-wrapper { flex-direction: column; gap: 0.5rem; }
  .lang-switcher { position: static; margin-bottom: 1rem; display: inline-block; }
  footer { padding: 1.5rem 1rem; }
}