/* ==========================================================================
   FILE: site-upload.css
   ROLE: site
   Dropzone / upload UI theme.
   Loaded on: home (/index.php), addnewaa, hmaraindex, ofindex.
   ========================================================================== */

.dropzone, .dropzone * {
    box-sizing: border-box; }
  
    .dropzone {
      background: #cf1f3e0f;
      border: dashed;
      border-radius: 0.75rem;
      border-color: #b3032c;
  }
         
         
    .dropzone.dz-clickable {
      cursor: pointer; }
      .dropzone.dz-clickable * {
        cursor: pointer; }
      .dropzone.dz-clickable .dz-message, .dropzone.dz-clickable .dz-message * {
        cursor: pointer; 
            line-height: 40px;}
    .dropzone.dz-started .dz-message {
      display: none; }
    .dropzone.dz-drag-hover {
      border-style: solid; }
      .dropzone.dz-drag-hover .dz-message {
        opacity: 0.5; }
    .dropzone .dz-message {
      text-align: center;
      margin: auto;
      display: flex;
      height: 50vh;
      flex-direction: column;
      justify-content: center; }
    .dropzone .dz-preview {
      position: relative;
      display: inline-block;
      vertical-align: top;
      margin: 6px;
      min-height: 100px; }
      
      
      @media screen and (max-width: 480px) {
  
    .dropzone .dz-preview {
   margin: 2px 1px 2px 1px !important }
      }
      .	 .dz-preview:hover {
        z-index: 1000; }
        .dropzone .dz-preview:hover .dz-details {
          opacity: 1; }
      .dropzone .dz-preview.dz-file-preview .dz-image {
        border-radius: 20px;
        background:#b3032c1a; }
      .dropzone .dz-preview.dz-file-preview .dz-details {
        opacity: 1; }
      .dropzone .dz-preview.dz-image-preview {
        background: rgba(255, 255, 255, 0); }
        .dropzone .dz-preview.dz-image-preview .dz-details {
          -webkit-transition: opacity 0.2s linear;
          -moz-transition: opacity 0.2s linear;
          -ms-transition: opacity 0.2s linear;
          -o-transition: opacity 0.2s linear;
          transition: opacity 0.2s linear; }
      .dropzone .dz-preview .dz-remove {
        z-index: 500;
        position: absolute;
        display: block;
        top: 5px;
        right: 10px;
        color: #e53935;
    }
        .dropzone .dz-preview .dz-remove:hover {
          text-decoration: underline;
          }
      .dropzone .dz-preview:hover .dz-details {
        opacity: 1; }
      .dropzone .dz-preview .dz-details {
        z-index: 20;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        font-size: 13px;
        min-width: 100%;
        max-width: 100%;
        padding: 2em 1em;
        text-align: center;
        color: rgba(0, 0, 0, 0.9);
        line-height: 150%; }
        .dropzone .dz-preview .dz-details .dz-size {
      margin-bottom: 8px;
      font-size: 16px;
      margin-top: 4px; }
        .dropzone .dz-preview .dz-details .dz-filename {
          white-space: nowrap; }
          .dropzone .dz-preview .dz-details .dz-filename:hover span {
            border: 1px solid rgba(200, 200, 200, 0.8);
            background-color: rgba(255, 255, 255, 0.8); }
          .dropzone .dz-preview .dz-details .dz-filename:not(:hover) {
            overflow: hidden;
            text-overflow: ellipsis; }
            .dropzone .dz-preview .dz-details .dz-filename:not(:hover) span {
              border: 1px solid transparent; }
        .dropzone .dz-preview .dz-details .dz-filename span, .dropzone .dz-preview .dz-details .dz-size span {
          background-color: rgba(255, 255, 255, 0.4);
          padding: 0 0.4em;
          border-radius: 3px; }
      .dropzone .dz-preview:hover .dz-image img {
        -webkit-transform: scale(1.05, 1.05);
        -moz-transform: scale(1.05, 1.05);
        -ms-transform: scale(1.05, 1.05);
        -o-transform: scale(1.05, 1.05);
        transform: scale(1.05, 1.05);
        -webkit-filter: blur(8px);
        filter: blur(8px); }
      .dropzone .dz-preview .dz-image {
        border-radius: 20px;
        overflow: hidden;
        width: 100px;
        height: 100px;
        position: relative;
        display: block;
        z-index: 10;
        background: #b3032c1a; }
        .dropzone .dz-preview .dz-image img {
          display: block; }
      .dropzone .dz-preview.dz-success .dz-success-mark {
        -webkit-animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1);
        -moz-animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1);
        -ms-animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1);
        -o-animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1);
        animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1); }
      .dropzone .dz-preview.dz-error .dz-error-mark {
        opacity: 1;
        -webkit-animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1);
        -moz-animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1);
        -ms-animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1);
        -o-animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1);
        animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1); }
      .dropzone .dz-preview .dz-success-mark, .dropzone .dz-preview .dz-error-mark {
        pointer-events: none;
        opacity: 0;
        z-index: 500;
        position: absolute;
        display: block;
        top: 50%;
        left: 50%;
        margin-left: -27px;
        margin-top: -27px; }
        .dropzone .dz-preview .dz-success-mark svg, .dropzone .dz-preview .dz-error-mark svg {
          display: block;
          width: 54px;
          height: 54px; }
      .dropzone .dz-preview.dz-processing .dz-progress {
        opacity: 1;
        -webkit-transition: all 0.2s linear;
        -moz-transition: all 0.2s linear;
        -ms-transition: all 0.2s linear;
        -o-transition: all 0.2s linear;
        transition: all 0.2s linear; }
      .dropzone .dz-preview.dz-complete .dz-progress {
        opacity: 0;
        -webkit-transition: opacity 0.4s ease-in;
        -moz-transition: opacity 0.4s ease-in;
        -ms-transition: opacity 0.4s ease-in;
        -o-transition: opacity 0.4s ease-in;
        transition: opacity 0.4s ease-in; }
 
      .dropzone .dz-preview .dz-progress {
      opacity: 1;
      z-index: 1000;
      pointer-events: none;
      position: absolute;
      height: 20px;
      top: 80%;
      margin-top: 4px;
      width: 100px;
      border-radius: 0px 0px 20px 20px;
      overflow: hidden;
        }
        .dropzone .dz-preview .dz-progress .dz-upload {
          background: linear-gradient(to bottom, hsl(349deg 74% 47% / 70%), hsl(346deg 97% 36% / 70%));
          position: absolute;
          top: 0;
          left: 0;
          bottom: 0;
          width: 0;
          -webkit-transition: width 300ms ease-in-out;
          -moz-transition: width 300ms ease-in-out;
          -ms-transition: width 300ms ease-in-out;
          -o-transition: width 300ms ease-in-out;
          transition: width 300ms ease-in-out; }
      .dropzone .dz-preview.dz-error .dz-error-message {
        display: block; }
      .dropzone .dz-preview.dz-error:hover .dz-error-message {
        opacity: 1;
        pointer-events: auto; }
      .dropzone .dz-preview .dz-error-message {
        pointer-events: none;
        z-index: 1000;
        position: absolute;
        display: block;
        display: none;
        opacity: 0;
        -webkit-transition: opacity 0.3s ease;
        -moz-transition: opacity 0.3s ease;
        -ms-transition: opacity 0.3s ease;
        -o-transition: opacity 0.3s ease;
        transition: opacity 0.3s ease;
        border-radius: 8px;
        font-size: 13px;
        top: 130px;
        left: -10px;
        width: 140px;
        background: #be2626;
        background: linear-gradient(to bottom, #be2626, #a92222);
        padding: 0.5em 1.2em;
        color: white; }
        .dropzone .dz-preview .dz-error-message:after {
          content: '';
          position: absolute;
          top: -6px;
          left: 64px;
          width: 0;
          height: 0;
          border-left: 6px solid transparent;
          border-right: 6px solid transparent;
          border-bottom: 6px solid #be2626; }

/* ==========================================================================
   Theme override: per-file remove control on the preview thumb
   The legacy markup painted a bare red Font-Awesome glyph over the photo
   (no plate, no contrast, invisible when the icon font fails to load).
   ========================================================================== */
.dropzone .dz-preview .dz-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    left: auto;
    bottom: auto;
    z-index: 30;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0;
    line-height: 0;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .15s ease, transform .12s ease, box-shadow .15s ease;
}

.dropzone .dz-preview .dz-remove::after {
    content: none;
}

/* the legacy glyph must never show twice */
.dropzone .dz-preview .dz-remove .fa,
.dropzone .dz-preview .dz-remove .text-danger {
    display: none;
}

.dropzone .dz-preview .dz-remove svg,
.dropzone .dz-preview .dz-remove .hp-icon {
    width: 12px;
    height: 12px;
    display: block;
    color: #fff;
    pointer-events: none;
}

.dropzone .dz-preview .dz-remove:hover,
.dropzone .dz-preview .dz-remove:focus-visible {
    background: rgba(207, 31, 62, 0.85);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    outline: none;
}

.dropzone .dz-preview .dz-remove:active {
    transform: scale(0.94);
}

@media screen and (max-width: 767px) {
    .dropzone .dz-preview .dz-remove {
        top: 4px;
        right: 4px;
        width: 26px;
        height: 26px;
    }

    .dropzone .dz-preview .dz-remove svg,
    .dropzone .dz-preview .dz-remove .hp-icon {
        width: 13px;
        height: 13px;
    }
}

/* Dropzone can append its own empty <a class="dz-remove"> when addRemoveLinks is
   on; never paint an empty circle on top of the template button */
.dropzone .dz-preview .dz-remove:empty {
    display: none;
}
