/**
 * Wexira Unified Tools & Dropzone Stylesheet
 * Single Source of Truth (SSOT) for all in-browser PDF, Media, and Canvas tools.
 */

/* --- Base Tool Container --- */
#tool-uploader,
#tool-interface,
.bg-gray-800 {
  background-color: #000000 !important;
  border-color: #262626 !important;
  max-width: 42rem;
  width: 100%;
  box-sizing: border-box;
  border-radius: 1rem;
}

/* Headings & general text */
#tool-uploader h1,
#tool-uploader h2,
#tool-interface h1,
#tool-interface h2 {
  color: #ffffff !important;
}

#tool-uploader p,
#tool-interface p {
  color: #e5e7eb !important;
}

/* --- Universal Drop Zone / Upload Area (Desktop) --- */
#drop-zone,
.drop-zone,
.dropzone,
[id*="drop-zone"],
[id*="dropzone"],
[class*="drop-zone"],
[class*="dropzone"] {
  border: 2px dashed #ffffff !important;
  background-color: #000000 !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 200px;
  height: auto !important;
  padding: 2rem 1.5rem !important;
  border-radius: 0.875rem !important;
  box-sizing: border-box !important;
}

#drop-zone:hover,
.drop-zone:hover,
.dropzone:hover,
#drop-zone:active,
.drop-zone:active,
.dropzone:active,
#drop-zone:focus,
.drop-zone:focus,
.dropzone:focus {
  background-color: #000000 !important;
  border-color: #ffffff !important;
}

/* Drop Zone Content Elements - Pure White */
#drop-zone *,
.drop-zone *,
.dropzone *,
#drop-zone p,
.drop-zone p,
#drop-zone span,
.drop-zone span,
#drop-zone .text-gray-500,
.drop-zone .text-gray-500,
#drop-zone .text-gray-400,
.drop-zone .text-gray-400,
#drop-zone [data-i18n="upload.filesNeverLeave"],
.drop-zone [data-i18n="upload.filesNeverLeave"] {
  color: #ffffff !important;
  text-align: center !important;
}

#drop-zone svg,
#drop-zone i,
.drop-zone svg,
.drop-zone i {
  stroke: #ffffff !important;
  color: #ffffff !important;
}

/* --- Mobile Responsive Redesign --- */
/* Eliminates cramped vertical/square dropzone and provides a sleek horizontal rectangle shape */
@media (max-width: 767px) {
  html, body {
    width: 100% !important;
    overflow-x: hidden !important;
  }

  /* 1. Eliminate heavy outer padding so the card can span comfortably */
  #app,
  #uploader,
  .container,
  div[class*="container"] {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    padding-top: 0.5rem !important;
    padding-bottom: 1rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  /* 2. Expand tool card to full mobile width */
  #tool-uploader,
  #tool-interface,
  .bg-gray-800 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.15rem 0.875rem !important;
    margin: 0 auto !important;
    border-radius: 0.875rem !important;
    box-sizing: border-box !important;
  }

  #tool-uploader h1,
  #tool-uploader h2,
  #tool-interface h1,
  #tool-interface h2 {
    font-size: 1.35rem !important;
    margin-bottom: 0.75rem !important;
    text-align: left !important;
  }

  /* 3. Sleek, proportional horizontal rectangle for the drop box */
  #drop-zone,
  .drop-zone,
  .dropzone,
  [id*="drop-zone"],
  [id*="dropzone"],
  [class*="drop-zone"],
  [class*="dropzone"] {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 120px !important;
    height: auto !important;
    padding: 1.15rem 0.75rem !important;
    border: 2px dashed #ffffff !important;
    border-radius: 0.75rem !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Inner container inside drop-zone */
  #drop-zone > div,
  .drop-zone > div {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
  }

  /* Compact icon & typography for clean rectangular proportions */
  #drop-zone svg,
  #drop-zone i,
  #drop-zone [data-lucide],
  .drop-zone svg,
  .drop-zone i {
    width: 1.85rem !important;
    height: 1.85rem !important;
    margin-bottom: 0.35rem !important;
    stroke-width: 1.75 !important;
  }

  #drop-zone p,
  .drop-zone p {
    font-size: 0.825rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.2rem !important;
  }

  #drop-zone p.text-xs,
  .drop-zone p.text-xs,
  #drop-zone [data-i18n*="acceptedFormats"],
  #drop-zone [data-i18n="upload.filesNeverLeave"] {
    font-size: 0.725rem !important;
    line-height: 1.2 !important;
    margin-top: 0.15rem !important;
    opacity: 0.85 !important;
  }

  /* Convert / Process button */
  #process-btn,
  .btn-gradient {
    width: 100% !important;
    padding: 0.8rem 1rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 0.75rem !important;
    margin-top: 1rem !important;
  }
}
