/* #region vars*/
:root {
  --background: #edf0f7;
}
/* #endregion */

/* #region common*/
.hidden {
  display: none;
}
body {
  background-color: var(--background);
  font-family: sans-serif;
}
.upload {
  position: fixed;
  background-color: #fff;
  padding: 25px;
  border-radius: 20px;
  width: 700px;
  left: 50%;
  margin-left: -350px;
  top: 30%;
  box-shadow: 0px 0px 20px 5px rgb(0 0 0 / 10%);
  max-height: 45vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
h1 {
  display: none;
}
h3 {
  margin: 0;
  color: #3648a5;
  font-family: sans-serif;
}
/* #endregion */

/* #region loader*/
.loader,
.uploader {
  font-size: 10px;
  margin: auto;
  text-indent: -9999em;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  background: linear-gradient(
    to right,
    #ffffff 10%,
    rgba(255, 255, 255, 0) 42%
  );
  position: relative;
  animation: load3 1.4s infinite linear;
  transform: translateZ(0);
}
.loader:before,
.uploader:before {
  width: 50%;
  height: 50%;
  background: #503ce9;
  border-radius: 100% 0 0 0;
  position: absolute;
  top: 0;
  left: 0;
  content: '';
}
.loader:after,
.uploader:after {
  background: #ffffff;
  width: 75%;
  height: 75%;
  border-radius: 50%;
  content: '';
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

@-webkit-keyframes load3 {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes load3 {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/*#endregion*/

/* #region form*/
form {
  position: relative;
  text-align: center;
  border: 2px dashed #777eff;
  border-radius: 10px;
  padding: 40px;
  margin-top: 15px;
  color: #494950;
}
input[type='file'] {
  opacity: 0;
  z-index: 2;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  cursor: pointer;
}
form.active {
  background-color: #f1f0fd;
}
form > .uploader {
  display: none;
}
form.uploading > .uploader {
  display: block;
}
form.uploading > .info {
  display: none;
}
form.uploading {
  background-color: transparent;
  pointer-events: none;
}
/* #endregion */

/* #region app list*/
.all-apks {
  margin-top: 25px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.loader {
  margin-top: 15px;
}
.list-header {
  text-align: center;
  color: #3648a5;
  font-weight: bold;
}
li {
  list-style-type: none;
  color: #43434a;
  cursor: pointer;
  display: flex;
  padding: 7px 0;
  border-radius: 5px;
}
li:hover {
  color: #e93438;
  background-color: #fbf1f4;
}
li > a {
  display: flex;
  flex: 1;
}
li .name {
  flex: 1;
}
a {
  text-decoration: none;
  color: unset;
}
ul {
  padding: 0;
  overflow-y: auto;
}
/* #endregion */

/* #region mobile */

@media (max-width: 960px) {
  body {
    padding: 0;
    margin: 0;
    background-color: #fff;
  }
  h1 {
    display: block;
    text-align: center;
    box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.1);
    margin: 0;
    font-size: 24px;
    padding: 12px;
  }
  .upload {
    position: static;
    width: 100vw;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    background-color: transparent;
    overflow-x: hidden;
    padding: 0 16px;
  }
  .list-header,
  form {
    display: none;
  }
  .all-apks {
    margin-top: 0;
  }

  li > a {
    flex-direction: column;
  }
  li .name {
    flex: auto;
    font-size: 18px;
  }

  li .version {
    color: #888;
    font-size: 14px;
    margin-top: 4px;
    pointer-events: none;
  }
}
/* #endregion */
