// Buttons ******************
.button {
  border: 0;
  padding: 7px 12px;
  margin-right: 10px;
  border-radius: 2px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;

  &:last-child {
    margin-right: 0;
  }

  &:active, &:focus, &:hover:not([disabled]) {
    background-image: none;
    outline: 0;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.25);
    text-decoration: none;
  }

  &[disabled] {
    opacity: 0.6;

    &:hover {
      cursor: default;
    }
  }

  &.secondary {
    color: $chat-text-inverse;
    background-color: $chat-secondary;

    &:hover {
      background-color: $chat-secondary-dark;
    }
  }

  &.primary {
    color: $chat-text-inverse;
    background-color: $chat-primary;

    &:hover {
      background-color: $chat-primary-dark;
    }
  }

  &.info {
    color: $chat-text-inverse;
    background-color: $chat-info;

    &:hover {
      background-color: $chat-info-dark;
    }
  }

  &.danger {
    color: $chat-text-inverse;
    background-color: $chat-danger;

    &:hover {
      background-color: $chat-danger-dark;
    }
  }

  &.success {
    color: $chat-text-inverse;
    background-color: $status-online;

    &:hover {
      background-color: darken($status-online, 10%);
    }
  }
}

// Pull
.chat-pull-right {
  float: right !important;
}

.chat-pull-left {
  float: left !important;
}

// Text Align
.tx-center {
  text-align: center;
}

.tx-left {
  text-align: left;
}

.tx-right {
  text-align: right;
}

// Checkbox
.chat-checkbox {
  cursor: pointer;
}

// Add user list
.chat-add-user-list {
  .chat-add-user-item {
    background-color: $chat-primary-dark;
    padding: 5px 0;
    margin: 0;

    &:hover, &.selected {
      background-color: $chat-primary;
      cursor: pointer;
    }
  }

  .media-contact-block i {
    color: $chat-secondary;
    font-size: 16px;
    margin: 0 8px;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
  }
}

// Errors
.error-log {
  text-align: center;
  padding: 15px 10px;
  color: #FFF;
  font-size: 18px;
  clear: both;

  i {
    display: block;
    font-size: 2rem;
    margin-top: 20px;
    margin-bottom: 10px;
  }
}

// Contact Photo
.contact-photo {
  width: 40px;
  height: 40px;
  float: left;
  border-radius: 100%;
  display: inline-block;
  position: relative;
  background-color: #DADADA;

  > img {
    border-radius: 100%;
    width: 40px;
    height: 40px;
  }
}

// Highlight text on search
.highlighted {
  font-weight: 600;
  color: $chat-secondary;
}

// Inputs
input:not([type="radio"]), input:not([type="checkbox"]) {
  color: $chat-text-inverse;
  height: 38px;
  width: 100%;
  background-color: transparent;
  border: 0;
  margin: 0;
  border: 1px solid #8F9297;
  padding: 12px;
  border-radius: 0;

  &:focus {
    box-shadow: 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba($chat-secondary, .6) inset;
  }
}

.chat-input-control {
  width: 100%;
  display: block;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding: 8px 10px;
  margin-bottom: 5px;
  border-radius: 2px;
  border: 1px solid #ccc;
  font-size: 1rem;

  &[disabled="disabled"] {
    cursor: default;
    opacity: 0.5;
  }
}

textarea.chat-input-control {
  cursor: text;
  resize: vertical;
}

select.chat-input-control {
  cursor: pointer;
}
