* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
.nav, .pagination, .carousel, .panel-title a, a { 
  cursor: pointer; 
}
.ng-cloak {
  display: none;
}

/*Global*/

body {
  font: 15px/1.3 sans-serif; 
}

.full-screen {
  height: 100%;
  width: 100%;
  position: fixed;
  margin: 0;
}

input.form-control.ng-dirty.ng-invalid, 
input.form-control.ng-dirty.ng-invalid:focus {
  border-color: red;
}

hr {
  border-top: 1px solid #9D9D9D;
}

blockquote {
  margin: 0;
  padding: 2px 10px;
  font-size: 1em;
}

form[name="RegisterForm"], form[name="LoginForm"] {
  margin-top: 50px;
}
.form-group {
  position: relative;
}
  .form-group .error {
    position: absolute;
    top: -35px;
    color: red;
    padding: 0.5em;
    display: none;
  }
  .ng-dirty.ng-invalid-unique-username + .error {
    display: block;
  }

/*Sidebar*/

.sidebar {
  background-color: #4D394B;
  width: 220px;
  float: left;
  height: 100%;
  padding: 0;
  z-index: 10;
}
  .sidebar, .sidebar a {
    color: #ab9ba9;
  }
  .sidebar .active {
    color: white;
    font-weight: bold;
  }
  .sidebar form {
    width: 100%;
  }
  .sidebar .form-group {
    width: calc(100% - 30px);
    margin: 0 1em;
  }
  .sidebar .form-control {
    width: 100%;
  }
  .sidebar .logged-user {
    padding: 1em;
  }

i.circle {
  display: inline-block;
  height: 0.7em;
  width:  0.7em;
  border: 2px solid #ab9ba9;
  border-radius: 50%;
}
i.circle.online {
  background-color: #ab9ba9;
}
.form-group {
  position: relative;
}
.input-error {
  display: none;
  top: 34px;
} 
.form-control.ng-invalid + .input-error{
  display: block;
}

ul {
  margin-top: 20px;
  list-style: none;
}
li a {
  display: block;
  padding: 2px 15px;
  font-size: 1em;
  border-radius: 0;
}
li p {
  padding-left: 15px;
}
li a:hover, li a:focus {
  background-color: #3e313c;
  text-decoration: none;
}
li a.current {
  background-color: #4C9689;
  color: white;
}

/*Chat*/

.chat {
  height: calc(100% - 50px);
  max-height: 100%;
  overflow-y: scroll;
}
.messages { 
  margin: 15px;
}
.message {
  margin-top: 10px;
}
.message h5 {
  font-weight: bold;
}
.message .media-left a {
  display: block;
  width: 36px;
}
.media-heading a {
  color: #000;
}
.time {
  font-weight: normal;
  font-size: 0.85em;
}
.media-left .time {
  display: none;
}
.message-text {
  position: relative;
}
.message-text .ng-binding {
  white-space: pre;
}
.message-text:hover .glyphicon-remove {
  display: inline-block;
}
.message:hover .media-left .time {
  display: inline;
}

.glyphicon-remove {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  color: #ddd;
}
.glyphicon-remove:hover {
  color: #333;
  cursor: pointer;
}
.image-preview img {
  display: block;
  width: auto;
  height: auto;
  max-height: 400px;
  cursor: pointer;
}
.youtube-preview {
  width: 480px;
  height: 360px;
  position: relative;
}
.vimeo-preview {
  position: relative;
  width: 640px;
  height: 360px;
  background-color: black;
}
.vimeo-preview img {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
}
.youtube-preview i, .vimeo-preview i {
  position: absolute;
  width: 100%;
  color: white;
  font-size: 60px;
  line-height: 360px;
  text-align: center;
  z-index: 2;
  transition: all 0.5s;
  text-shadow: 0 0 10px black;
}
.youtube-preview:hover i, .vimeo-preview:hover i {
  opacity: 1;
  cursor: pointer;
}

#msg {
  position: fixed;
  width: calc(100% - 250px);
  bottom: 0;
  margin-left: 15px;
  box-shadow: 0 -5px 5px 0 rgba(255, 255, 255, 0.5);
}
  #msg textarea {
    height: 34px;
    max-height: 174px;
    resize: none;
  }
.mention {
  background-color: yellow;
}

#lightbox {
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
}
#lightbox-wrap {
  position: relative;
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
}
#lightbox-wrap img {
  max-height: 95%;
  max-width: 95%;
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
}
  #loading h2 {
    padding-left: 1em;
  }