/* Additional styles for watermark remover app */

/* Drop Zone */
.drop-zone {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  padding: 60px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #0c0e15;
  margin: 20px 0;
}

.drop-zone:hover {
  border-color: #e60023;
}

.drop-zone.drag-over {
  border-color: #e60023;
  background: #3a2a2a;
}

.drop-zone-content svg {
  color: #999;
  margin-bottom: 16px;
}

.drop-zone-text {
  font-size: 18px;
  font-weight: 500;
  color: #e0e0e0;
  margin: 30px 0 0;
}

.drop-zone-hint {
  font-size: 14px;
  color: #aaa;
  margin-top: 8px;
}

.drop-zone-features {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.feature-badge img {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

.upload-button {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 25px 40px;
  border: none;
  background: #e72223;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 8px 30px rgba(230, 0, 35, 0.35);
}

.upload-button:hover {
  background: #b6001b;
  transform: translateY(-2px);
}

.upload-button-icon {
  width: 28px;
  height: 28px;
  background: url('/static/img/icon-upload.svg') center/contain no-repeat;
}

.upload-button-text {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button.large,
.ghost-button.large {
  padding: 18px 36px;
  font-size: 16px;
}

.primary-button {
  background: linear-gradient(120deg, #e72223, #e72223);
  color: #fff;
  box-shadow: 0 15px 40px rgba(255, 61, 78, 0.35);
}

.primary-button:hover {
  transform: translateY(-2px);
}

.primary-button-icon {
  width: 18px;
  height: 18px;
  background: url('/static/img/icon-upload.svg') center/contain no-repeat;
  filter: invert(1);
}

.ghost-button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

.ghost-button:hover {
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

body.editor-active {
  background: #06070f;
}

body.editor-active .content {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.editor-active .hero-section,
body.editor-active .top-title,
body.editor-active .input-form,
body.editor-active .bottom-info,
body.editor-active .content-sections {
  display: none;
}

body.editor-active header,
body.editor-active footer {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
}

body.upload-page header,
body.upload-page footer {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
}

body:has(.editor-section:not([style*="display: none"])) header,
body:has(.editor-section:not([style*="display: none"])) footer {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
}

body.editor-active .editor-section {
  display: block !important;
}

body.upload-page {
  background: #06070f;
}

body.upload-page .container {
  max-width: 1440px;
  width: 100%;
  padding: 0;
}

body.upload-page .content {
  padding: 0;
  margin: 0;
}

.editor-section {
  width: 100%;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.9));
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  padding: 40px 64px;
  min-height: 100vh;
  box-sizing: border-box;
}

body.upload-page .editor-section {
  height: 100vh;
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

body.upload-page .editor-layout {
  height: 100%;
  min-height: 0;
  padding: 0;
  align-items: stretch;
}

body.upload-page .editor-column {
  gap: 0;
}

body.upload-page .editor-column-left {
  min-height: 0;
}

body.upload-page .editor-left-list {
  flex: 1;
  min-height: 0;
}

.editor-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 0;
}

.editor-column-right {
  min-height: 0;
}

.editor-column-left {
  min-height: 0;
}

.editor-panel {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

body.upload-page .editor-panel {
  padding: 22px;
  border-radius: 0;
}

.editor-panel-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.editor-panel-logo {
  height: 36px;
  width: auto;
}

.editor-panel-chip {
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #ff9fb3;
  margin-bottom: 8px;
}

.editor-panel-header h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.editor-panel-subtitle {
  margin: 0;
  color: #a6a6a6;
  font-size: 14px;
}

.editor-delete-all {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 8px 14px;
  height: 35px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.editor-delete-all img {
  width: 16px;
  height: 16px;
  opacity: 0.9;
  filter: invert(1);
  width: 15px;
}

.editor-delete-all:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.editor-dropzone {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  padding: 40px 20px 20px;
  background: rgba(8, 12, 20, 0.7);
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
  position: relative;
  cursor: pointer;
}
.editor-dropzone:hover {
  border-color: rgb(253 64 82);
}

.editor-dropzone .editor-delete-all {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
}
.editor-dropzone .editor-delete-all:hover {
  background-color: #e72223;
}

.editor-dropzone.drag-over {
  border-color: #e72223;
  background: rgba(255, 86, 112, 0.08);
}

.editor-drop-icon {
  width: 30px;
  height: 30px;
  margin: 0 auto 10px;
  background: url(/static/img/icon-upload.svg) center / contain no-repeat;
}

.editor-drop-cta {
  font-size: 18px;
  margin-bottom: 6px;
}

.editor-drop-meta {
  color: #8b8b8b;
  font-size: 12px;
}

.editor-drop-btn {
  width: 100%;
  border-radius: 18px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s ease;
}

.editor-drop-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.editor-left-list {
  background: rgb(11 13 20);
}

body.upload-page .editor-left-list {
  padding: 16px;
}

.editor-queue-list {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  overflow-y: auto;
  max-height: 320px;
  align-content: start;
}

body.upload-page .editor-queue-list {
  max-height: 100%;
}

.editor-queue-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid transparent;
  overflow: hidden;
  cursor: pointer;
}

.editor-queue-item.active {
  border-color: #e72223;
}

.editor-queue-item.processing {
  border-color: #fbbf24;
}

.editor-queue-item.done {
  border-color: #22c55e;
}

.editor-queue-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.queue-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 0 10px;
  height: 30px;
  border-radius: 999px;
  cursor: pointer;

}
.queue-remove:hover {
  background: #e72223;
}

.editor-queue-empty {
  text-align: center;
  color: #7e7e7e;
  font-size: 14px;
}

.preview-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  color: #b3b3b3;
}

.preview-label.floating {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
}

.editor-remove-btn {
  margin: 20px;
  border-radius: 10px;
}

.editor-remove-btn:disabled {
  background: #2e333d;
  color: #8a8f99;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.editor-remove-btn[data-mode="download"] {
  background: linear-gradient(120deg, #1c9849, #00762c);
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.35);
}

.editor-remove-btn[data-mode="download"]:hover {
  background: linear-gradient(120deg, #16a34a, #15803d);
  box-shadow: 0 14px 36px rgba(34, 197, 94, 0.45);
}

.editor-main-preview-frame {
  flex: 1;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  min-height: 0;
  height: 100%;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 40px;
}

.editor-main-preview-frame img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}


@media (max-width: 1200px) {
  .editor-layout {
    grid-template-columns: minmax(280px, 360px) 1fr;
    padding: 32px;
  }
}

@media (max-width: 960px) {
  body.upload-page .editor-section {
    overflow-y: auto;
    overflow-x: hidden;
  }
  body.upload-page .editor-layout {
    height: auto;
    min-height: auto;
  }
  .editor-layout {
    grid-template-columns: 1fr;
    padding: 24px;
    display: flex;
    flex-direction: column;
  }
  .editor-column-left {
    order: 2;
  }
  .editor-column-right {
    order: 1;
    min-height: 300px;
    max-height: none;
    flex-shrink: 1;
  }
  .editor-main-preview-frame {
    height: auto;
    max-height: 50vh;
    padding: 20px;
    flex-shrink: 1;
  }
  .preview-strip-item {
    width: 90px;
    height: 90px;
  }
  .editor-queue-list {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
  }
}

@media (max-width: 640px) {
  body.upload-page .editor-section {
    overflow-y: auto;
    overflow-x: hidden;
  }
  .editor-layout {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
  }
  .editor-column-left {
    order: 2;
  }
  .editor-column-right {
    order: 1;
  }
  .editor-panel,
  .editor-left-list {
    padding: 18px;
  }
  .editor-main-preview-frame {
    padding: 16px;
    border-radius: 28px;
    max-height: 45vh;
  }
  .editor-main-preview-frame img {
    max-height: 100%;
    max-width: 100%;
    width: 70%;
  }
  .editor-queue-list {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
}

/* Comparison Section */
.comparison-section {
  display: none;
  margin: 40px 0;
  padding: 30px;
  background: #2a2a2a;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.comparison-section.active {
  display: block;
}

.comparison-title {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: #f5f5f5;
  margin-bottom: 24px;
}

.slider-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.slider-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #1f1f1f;
}

.before-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.15s ease;
  z-index: 2;
}

.before-img,
.after-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
}

.after-img {
  z-index: 1;
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  z-index: 10;
  transform: translateX(-50%);
}

.slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #667eea;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  z-index: 11;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.slider-button:active {
  cursor: grabbing;
}

.slider-button::before,
.slider-button::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

.slider-button::before {
  border-width: 8px 12px 8px 0;
  border-color: transparent #667eea transparent transparent;
  left: 10px;
}

.slider-button::after {
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent #667eea;
  right: 10px;
}

.labels {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.label-before,
.label-after {
  position: absolute;
  top: 16px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.5px;
  border-radius: 4px;
  text-transform: uppercase;
}

.label-before {
  left: 16px;
}

.label-after {
  right: 16px;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  padding: 12px 28px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-download {
  background: #667eea;
  color: #fff;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
}

.btn-download:hover:not([disabled]) {
  background: #5568d3;
  transform: translateY(-2px);
}

.btn-reset {
  background: #3a3a3a;
  color: #f5f5f5;
}

.btn-reset:hover {
  background: #4a4a4a;
}

/* Loading overlay */
.loading {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  gap: 16px;
}

.loading.active {
  display: flex;
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Processing Status */
.processing-status {
  margin: 20px 0;
  padding: 20px;
  background: #2a2a2a;
  border-radius: 8px;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: #3a3a3a;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar {
  height: 100%;
  background: #e60023;
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  text-align: center;
  color: #aaa;
  font-size: 14px;
}

/* Error Message */
.error-message {
  padding: 16px;
  background: #3a2222;
  border: 1px solid #5a3333;
  border-radius: 8px;
  color: #e72223;
  margin: 20px 0;
  position: relative;
}

.error-message.compact {
  margin: 16px 0 0;
}

.error-message .error-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: none;
  color: inherit;
  font-size: 16px;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
}

/* Uploaded Preview */
.uploaded-preview {
  margin: 20px 0;
  padding: 24px;
  background: #2a2a2a;
  border-radius: 12px;
}

.preview-container {
  text-align: center;
  margin-bottom: 32px;
}

.preview-container h3 {
  font-size: 20px;
  margin-bottom: 16px;
  text-align: center;
  color: #e0e0e0;
}

.preview-image-wrapper {
  position: relative;
  display: inline-block;
}

.preview-container img {
  max-width: 100%;
  max-height: 400px;
  height: auto;
  border-radius: 8px;
  border: 2px solid #444;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  display: block;
}

.watermark-overlay {
  position: absolute;
  background-color: rgba(255, 0, 0, 0.3);
  pointer-events: none;
  z-index: 10;
}

/* Method Selection inside uploaded-preview */
.uploaded-preview .method-selection {
  margin: 0;
  margin-top: 32px;
}

.start-processing-button {
  display: block;
  margin: 0 auto;
  padding: 14px 32px;
  background: #e60023;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.start-processing-button:hover {
  background: #b6001b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 0, 35, 0.3);
}

/* Method Selection */
.method-selection {
  margin: 40px 0;
}

.method-selection h3 {
  font-size: 24px;
  margin-bottom: 24px;
  text-align: center;
  color: #e0e0e0;
}

.method-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.method-selection-actions {
  margin-top: 32px;
  text-align: center;
}

/* Processing Status in Method Selection */
.method-selection-actions .processing-status {
  margin-top: 0;
  margin-bottom: 0;
}

.method-card {
  border: 2px solid #444;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #2a2a2a;
}

.method-card:hover {
  border-color: #e60023;
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(230, 0, 35, 0.3);
}

.method-card.active {
  border-color: #e60023;
  background: #3a2a2a;
}

.method-card.method-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.method-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.method-card h4 {
  font-size: 20px;
  margin: 12px 0;
  color: #e0e0e0;
}

.method-card p {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 16px;
}

.method-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  background: #3a3a3a;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  color: #aaa;
}

.badge-private {
  background: #2a3a2a;
  color: #4caf50;
}

.badge-soon {
  background: #3a2a1a;
  color: #ff9800;
}

/* Results Section */
.results-section {
  margin: 40px 0;
  padding: 24px;
  background: #2a2a2a;
  border-radius: 12px;
}

.results-section h3 {
  font-size: 24px;
  margin-bottom: 24px;
  text-align: center;
  color: #e0e0e0;
}

.results-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.result-preview {
  background: #333;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.result-preview h4 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #e0e0e0;
}

.result-preview img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #444;
}

.result-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.download-button {
  display: inline-block;
  padding: 12px 24px;
  background: #e60023;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.download-button:hover {
  background: #b6001b;
  color: #fff;
  text-decoration: none;
}

.process-another-button {
  padding: 12px 24px;
  background: #2a2a2a;
  color: #e0e0e0;
  border: 2px solid #555;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.process-another-button:hover {
  border-color: #e60023;
  color: #e60023;
  background: #333;
}

/* Task History */
.task-history {
  margin: 40px 0;
  padding: 24px;
  background: #2a2a2a;
  border-radius: 12px;
}

.task-history h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #e0e0e0;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: #333;
  border-radius: 8px;
  border: 1px solid #444;
}

.history-filename {
  flex: 1;
  font-weight: 500;
  color: #e0e0e0;
}

.history-method {
  padding: 4px 8px;
  background: #3a3a3a;
  border-radius: 4px;
  font-size: 12px;
  color: #aaa;
}

.history-time {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
}

.history-status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.history-status.status-queued {
  background: #3a2a1a;
  color: #ff9800;
}

.history-status.status-processing {
  background: #1a2a3a;
  color: #64b5f6;
}

.history-status.status-done {
  background: #2a3a2a;
  color: #4caf50;
}

.history-status.status-error {
  background: #3a2222;
  color: #e72223;
}

.history-download {
  padding: 4px 12px;
  background: #e60023;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.history-download:hover {
  background: #b6001b;
  color: #fff;
}

.detection-status {
  margin-top: 16px;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #2a2a2a;
}

.detection-status span {
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  color: #e0e0e0;
}

.detection-status p {
  margin: 0;
  font-size: 14px;
  color: #aaa;
}

.detection-status--success {
  border-color: rgba(76, 175, 80, 0.4);
  background: rgba(76, 175, 80, 0.15);
}

.detection-status--warning {
  border-color: rgba(255, 152, 0, 0.4);
  background: rgba(255, 152, 0, 0.15);
}

.detection-status--error {
  border-color: rgba(255, 107, 107, 0.4);
  background: rgba(255, 107, 107, 0.15);
}

/* Content Sections */
.hero-section {
  text-align: center;
  margin: 40px auto 60px;
  max-width: 900px;
}

.hero-section h1 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.3;
}

.hero-intro {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}

.content-sections {
  max-width: 900px;
  margin: 80px auto 40px;
  padding: 0 20px;
}

.content-section {
  margin-bottom: 60px;
}

.content-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.3;
}

.content-section h3 {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin: 24px 0 16px;
}

.content-section h4 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.content-section p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}

.feature-list,
.benefits-list,
.simple-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.feature-list li,
.benefits-list li,
.simple-list li {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
}

.feature-list li:before,
.benefits-list li:before {
  content: "";
  position: absolute;
  left: 0;
  width: 21px;
  height: 28px;
  background-image: url('/static/img/icon-check-red.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.simple-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #e72223;
  font-size: 20px;
  line-height: 1.3;
}

.examples-section {
  margin: 50px 0;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 30px 0;
}

.example-item {
  text-align: center;
}

.example-image-wrapper {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.example-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.example-label {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-top: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin: 30px 0;
}

.step-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
}

.step-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(253, 64, 82, 0.3);
}

.step-number {
  width: 40px;
  height: 40px;
  background: #e72223;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.formats-grid,
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.formats-column,
.comparison-column {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
}

.comparison-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.comparison-list li {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
  padding-left: 24px;
  position: relative;
}

.comparison-list.positive li:before {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 25px;
  background-image: url('/static/img/icon-check-green.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.comparison-list.negative li:before {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 25px;
  background-image: url('/static/img/icon-no-red.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.testimonials-section {
  margin-top: 60px;
}

.testimonials-list {
  margin: 30px 0;
  display: grid;
  gap: 20px;
}

.testimonial-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid #e72223;
  border-radius: 12px;
  padding: 24px;
  margin: 0;
  transition: all 0.3s ease;
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  margin-bottom: 12px;
}

.testimonial-text::before {
  content: '"';
  color: #e72223;
  font-size: 24px;
  margin-right: 4px;
}

.testimonial-text::after {
  content: '"';
  color: #e72223;
  font-size: 24px;
  margin-left: 4px;
}

.testimonial-author {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-style: normal;
  font-weight: 500;
}

.faq-section {
  margin-top: 60px;
}

.faq-list {
  margin-top: 30px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.faq-item h3 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  margin-top: 0;
}

.faq-item p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.cta-section {
  text-align: center;
  background: linear-gradient(135deg, rgba(253, 64, 82, 0.1) 0%, rgba(255, 107, 107, 0.05) 100%);
  border: 1px solid rgba(253, 64, 82, 0.2);
  border-radius: 16px;
  padding: 50px 30px;
  margin: 60px 0;
}

.cta-button {
  display: inline-block;
  background: #e72223;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  padding: 16px 40px;
  border-radius: 12px;
  text-decoration: none;
  margin: 20px 0;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.cta-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .method-cards {
    grid-template-columns: 1fr;
  }
  
  .results-container {
    grid-template-columns: 1fr;
  }
  
  .history-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .hero-section h1 {
    font-size: 24px;
    margin-bottom: 16px;
  }
  
  .hero-intro {
    font-size: 14px;
  }
  
  .drop-zone-features {
    gap: 12px;
    margin-top: 16px;
  }
  
  .feature-badge {
    font-size: 12px;
    gap: 4px;
  }
  
  .feature-badge img {
    width: 14px;
    height: 14px;
  }
  
  .content-sections {
    padding: 0 16px;
    margin-top: 40px;
  }
  
  .content-section {
    margin-bottom: 40px;
  }
  
  .content-section h2 {
    font-size: 22px;
    margin-bottom: 16px;
  }
  
  .content-section h3 {
    font-size: 18px;
    margin: 20px 0 12px;
  }
  
  .content-section h4 {
    font-size: 16px;
  }
  
  .content-section p {
    font-size: 14px;
  }
  
  .examples-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .example-image-wrapper {
    padding: 12px;
  }
  
  .example-label {
    font-size: 14px;
    margin-top: 12px;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .step-item {
    padding: 20px;
  }
  
  .formats-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .formats-column,
  .comparison-column {
    padding: 20px;
  }
  
  .testimonial-item {
    padding: 20px;
  }
  
  .testimonial-text {
    font-size: 14px;
  }
  
  .testimonial-author {
    font-size: 13px;
  }
  
  .faq-item {
    padding: 20px;
  }
  
  .faq-item h3 {
    font-size: 16px;
  }
  
  .faq-item p {
    font-size: 14px;
  }
  
  .cta-section {
    padding: 30px 20px;
    margin: 40px 0;
  }
  
  .cta-button {
    font-size: 16px;
    padding: 14px 32px;
  }
}

/* RTL Support for Arabic */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .drop-zone-features {
  flex-direction: row-reverse;
}

[dir="rtl"] .feature-badge {
  flex-direction: row-reverse;
}

[dir="rtl"] .feature-badge img {
  margin-right: 0;
  margin-left: 8px;
}

[dir="rtl"] .steps-grid,
[dir="rtl"] .formats-grid,
[dir="rtl"] .comparison-grid {
  direction: rtl;
}

[dir="rtl"] .feature-list li:before,
[dir="rtl"] .benefits-list li:before,
[dir="rtl"] .comparison-list li:before {
  left: auto;
  right: 0;
  margin-right: 0;
  margin-left: 12px;
}

[dir="rtl"] .feature-list li,
[dir="rtl"] .benefits-list li,
[dir="rtl"] .comparison-list li {
  padding-left: 0;
  padding-right: 32px;
}

[dir="rtl"] .testimonial-item {
  border-left: none;
  border-right: 3px solid rgb(231, 34, 35);
  padding-left: 0;
  padding-right: 24px;
}

[dir="rtl"] .editor-delete-all {
  flex-direction: row-reverse;
}

[dir="rtl"] .editor-delete-all img {
  margin-right: 0;
  margin-left: 8px;
}

[dir="rtl"] header .logo {
  margin-left: 0;
}

[dir="rtl"] header .language {
  direction: ltr;
}

[dir="rtl"] .container {
  direction: rtl;
}

[dir="rtl"] .hero-section {
  text-align: right;
}

[dir="rtl"] .content-section {
  text-align: right;
}

[dir="rtl"] .simple-list {
  text-align: right;
}

[dir="rtl"] .examples-grid {
  direction: rtl;
}

[dir="rtl"] .cta-section {
  text-align: right;
}

