/**
 * @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;
  background-image: url(../../system/images/ajax-loader.gif);
  background-color: rgba(255,255,255,.8);
  background-repeat: no-repeat;
  background-position: center center;
  opacity: .8;
  overflow: hidden;
}

#dragarea {
  background-color: #fafbfc;
  border: 1px dashed #999;
  box-sizing: border-box;
  padding: 5% 0;
  transition: all 0.2s ease 0s;
  width: 100%;
}

#dragarea p.lead {
  color: #999;
}

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

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

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

.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 {
  -webkit-transition: width .1s;
  -moz-transition: width .1s;
  -o-transition: width .1s;
  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;
}
