/* User and admin pages (layouts/user): profile header, sidebar, lists, cart */

.user {
  min-height: 80vh;

  .header {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 3em;
    box-shadow: none;

    .user-img {
      width: 50px;
      height: 50px;
      border-radius: 50%;
    }

    .picture {
      border-radius: 50%;
    }

    .info {
      padding-left: 1em;

      p {
        margin: 0;
      }

      .subtext {
        color: gray;
        font-size: 0.7em;
      }
    }
  }

  .body {
    display: flex;

    .sidebar {
      width: 25%;
      padding-top: 0;
      box-shadow: none;

      .active {
        color: #4d90f8;
      }

      ul {
        padding: 0;
      }

      li {
        list-style: none;

        a {
          color: gray;
          transition: all 0.3s ease-out;

          &:hover {
            color: #0859d7;
          }

          &:active {
            color: #b3b3b3;
          }
        }
      }

      hr {
        width: 30%;
        margin-left: 0;
      }
    }

    .main {
      width: 100%;

      @media (min-width: 500px) {
        width: 75%;
      }

      h4 {
        font-weight: 100;
      }
    }

    /* Rows of maps with thumbnail and actions (downloads, cart) */
    .list {
      display: flex;
      align-items: center;

      .image {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 6em;
        height: 6em;
        margin-right: 5%;
        background-color: white;

        img {
          max-width: 90%;
          max-height: 90%;
        }
      }

      .action {
        margin-left: auto;

        a,
        button {
          padding: 2em;
          border: 0;
          background: none;
          color: gray;

          &.remove:hover {
            color: red;
          }

          &.download:hover {
            color: green;
          }

          &.disabled {
            color: #b3b3b3;

            &:hover {
              cursor: not-allowed;
            }
          }
        }
      }
    }
  }
}

/* Cart: motivation field and request button per map */
.cart .request {
  width: 100%;

  form {
    display: flex;
    align-content: center;
    align-items: flex-start;
    justify-content: space-between;
  }

  .order-motivation {
    align-self: center;
    width: 70%;
    border: none;
    border-bottom: 1px solid gray;

    &:focus {
      outline: none;
    }
  }

  input[type="submit"] {
    margin-left: auto;
    padding: 8px;
    border: none;
    background-color: transparent;

    &:hover {
      color: #00b300;
      transition: all 0.3s ease-out;
    }
  }
}

.motivation-req {
  position: absolute;
  bottom: -5px;
  font-size: 10px;
  opacity: 0.6;
}
