/**
 * @copyright   (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

#loading {
  position: fixed;
  overflow: hidden;
  background-color: rgba(255, 255, 255, .8);
  background-image: url("../../system/images/ajax-loader.gif?v=144b8c");
  background-repeat: no-repeat;
  background-position: center center;
  opacity: .8;
}

#dragarea {
  box-sizing: border-box;
  width: 100%;
  padding: 5% 0;
  background-color: var(--body-bg);
  border: 1px dashed #999;
  transition: all .2s ease 0s;
}

#upload-icon {
  width: auto;
  height: auto;
  margin: 0;
  font-size: 48px;
  line-height: 175%;
  color: #999;
  transition: all .2s;
}

#dragarea.hover {
  background-color: #eee;
  border-color: #666;
}

#dragarea.hover #upload-icon,
#dragarea p.lead {
  color: #666;
}

@media (prefers-color-scheme: dark) {
  #dragarea p.lead {
    color: #999;
  }
}

.upload-progress, .install-progress {
  width: 50%;
  margin: 5px auto;
}

/* Default transition (.3s) is too slow, progress will not run to 100% */
.upload-progress .progress .bar {
  /* stylelint-disable */
  -webkit-transition: width .1s;
  -moz-transition: width .1s;
  -o-transition: width .1s;
  /* stylelint-enable */
  transition: width .1s;
}

#dragarea[data-state=pending] .upload-progress {
  display: none;
}

#dragarea[data-state=pending] .install-progress {
  display: none;
}

#dragarea[data-state=uploading] .install-progress {
  display: none;
}

#dragarea[data-state=uploading] .upload-actions {
  display: none;
}

#dragarea[data-state=installing] .upload-progress {
  display: none;
}

#dragarea[data-state=installing] .upload-actions {
  display: none;
}
