.th {
    border-right: 2px solid lightgrey;
    border-bottom: 2px solid lightgrey;
}

.cth {
    border-right: 0px solid lightgrey;
    border-bottom: 2px solid lightgrey;
}

.td {
    border-right: 2px solid lightgrey;
    border-bottom: 2px solid lightgrey;
    
}

.ctd {
    border-right: 0px solid;
    border-bottom: 2px solid lightgrey;
}

.button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 16px 32px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    border-radius: 5px;
    max-width: 180px;
}

.hidden {
    display: none;
}

.span {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

#filetext {
    margin-left: 10px;
}

#filebutton {
    margin: 10px auto 0 auto;
}


.textarea {
    border: 1px solid lightgrey;
    margin: 10px auto 0 auto;
    resize: none;
    height: 150px;
    border-radius: 5px;
    margin: 10px auto 0 auto;
    max-height: 100%;
    box-sizing: border-box;
}

.full-width {
  width: auto !important;
}
.card-bodys {
    padding: 0.2rem;
    border-radius: 10px;
    flex: 1 1 auto;
}
.bodies{
    flex: 1 1 auto;
    padding: 0px;
}
.cards {
    border-radius: 50px;
    word-wrap: break-word;
    background-clip: border-box;
    background-color: #fff;
    border: 0 solid transparent;
    border-radius: .25rem;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    width: 500px;
}
.login {
    background: url(../img/photos/bg.jpg);
    background-size: cover;
    backdrop-filter: blur(5px);
}
.logo_login {
    background: url('../img/photos/bg.jpg');
    padding: 50px 0;
    background-position: center center;
    position: relative;
    opacity: 0.9;
    background-size: cover;
}

.logo_login::after {
    width: 100%;
    height: 100%;
    position: absolute;
    background: rgba(21, 40, 60, .8);
    top: 0px;
    left: 0;
}

.center {
    display: flex;
    justify-content: center;
}

.custom-select {
    display: block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: .375rem 1.75rem .375rem .75rem;
    line-height: 1.5;
    color: #495057;
    background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right .75rem center;
    background-size: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.custom-select:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075), 0 0 5px rgba(128, 189, 255, .5)
}

.custom-select:focus::-ms-value {
    color: #495057;
    background-color: #fff
}

.custom-select[multiple],
.custom-select[size]:not([size="1"]) {
    height: auto;
    padding-right: .75rem;
    background-image: none
}

.custom-select:disabled {
    color: #6c757d;
    background-color: #e9ecef
}

.custom-select::-ms-expand {
    opacity: 0
}

.custom-select-sm {
    height: calc(1.8125rem + 2px);
    padding-top: .375rem;
    padding-bottom: .375rem;
    font-size: 75%
}

.custom-select-lg {
    height: calc(2.875rem + 2px);
    padding-top: .375rem;
    padding-bottom: .375rem;
    font-size: 125%
}

.custom-file {
    position: relative;
    display: inline-block;
    width: 100%;
    height: calc(2.25rem + 2px);
    margin-bottom: 0
}

.custom-file-input {
    position: relative;
    z-index: 2;
    width: 100%;
    height: calc(2.25rem + 2px);
    margin: 0;
    opacity: 0
}

.custom-file-input:focus~.custom-file-control {
    border-color: #80bdff;
    box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .25)
}

.custom-file-input:focus~.custom-file-control::before {
    border-color: #80bdff
}

.custom-file-input:lang(en)~.custom-file-label::after {
    content: "Browse"
}

.custom-file-label {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    height: calc(2.25rem + 2px);
    padding: .375rem .75rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: .25rem
}

.custom-file-label::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: block;
    height: calc(calc(2.25rem + 2px) - 1px * 2);
    padding: .375rem .75rem;
    line-height: 1.5;
    color: #495057;
    content: "Browse";
    background-color: #e9ecef;
    border-left: 1px solid #ced4da;
    border-radius: 0 .25rem .25rem 0;
}

.date {
    border-radius: 2px;
    border: 2px solid lightgray;
}

/* chat-modal */
.chat{
  display: none;
  align-items: center;
  justify-content: end;
  position: fixed;
  right:5px;
  bottom:5px;
}

.chat-content{
  width: 300px;
  height: 500px;
  background: linear-gradient(90deg, rgba(59,138,200,1) 2%, rgba(121,245,255,1) 95%);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* header chat */
.chat-header{
  height: 40px;
  position: sticky;
  background-color: #454545;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  /* color: white; */
}

.close-chat{
  background-color: transparent;
  border: 0px transparent;
  margin-top: -33px;
  height: 20px;
  width: 20px;
  display: flex;
  position: absolute;
  right: 15px;
  border-radius: 25px;
  color: white;
}

.chat-name{
  display: flex;
  position: absolute;
  left: 10px;
  top: 5px;
  font-size: 13px;
  color: white;
  font-weight:bold;
  text-transform: lowercase;
}

.chat-status{
  display: flex;
  position: absolute;
  left: 10px;
  font-size: 10px;
  color: white;
  font-weight:normal;
  text-transform: lowercase
}

.online{
  height: 10px;
  width: 10px;
  background-color: green;
  border-radius: 50%;
  margin-top: 3px;
  margin-right: 3px;
  animation-name: online;
  animation-duration: 2s;
  animation-iteration-count:infinite;
}

@keyframes online {
  0% {background-color: green;}
  50% {background-color: lightgreen;}
  100% {background-color: green;}
}

.offline{
  height: 10px;
  width: 10px;
  background-color: red;
  border-radius: 50%;
  margin-top: 3px;
  margin-right: 3px;
  animation-name: offline;
  animation-duration: 2s;
  animation-iteration-count:infinite;
}

.span-offline{
  height: 100px;
  width: 100px;
  background-color: red;
  border-radius: 50%;
  margin-top: 3px;
  margin-right: 3px;
}

@keyframes offline {
  0% {background-color: red;}
  50% {background-color: rgb(255, 100, 100);}
  100% {background-color: red;}
}

/* chat-box */
.chat-box{
  position: relative;
  overflow-y: scroll;
  overflow: overlay;
  max-height: 405px;
}

.my-chat-container{
  display: flex;
  justify-content: end;
  align-items: center;
}

.my-chat{
  align-items: center;
  min-width: 100px;
  max-width: 250px;
  font-size: 15px;
  padding: 10px 13px 3px 13px;
  margin: 2px 3px;
  background: #D7FDD7;
  color: black;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  border-top-right-radius: 20px;
}

.my-chat-time{
  display: flex;
  justify-content: end;
  align-items: center;
  font-size: 10px;
}

.other-chat-container{
  display: flex;
  justify-content: start;
  align-items: center;
}

.other-chat{
  align-items: center;
  min-width: 100px;
  max-width: 250px;
  font-size: 15px;
  padding: 10px 13px 3px 13px;
  margin: 2px 3px;
  background: white;
  color: black;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

.other-chat-time{
  display: flex;
  justify-content: end;
  align-items: center;
  font-size: 10px;
}

.chat-text{
  word-wrap: break-word;
  max-width: 300px;
  font-size: 13px;
}

/* chat-footer */
.chat-footer{
  width: 100%;
  min-height: 40px;
  max-height: 100px;
  background-color:#454545;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  display: flex;
  position: absolute;
  justify-content: center;
  bottom: 0px;
}

.btn-emoji{
  background-color: transparent;
  border: 0px transparent;
  position: absolute;
  height: 20px;
  width: 20px;
  left: 13px;
  margin-top: 13px;
  color: white;
}

.btn-emoji:hover{
  cursor: pointer;
}

.btn-send{
  width: 25px;
  height: 25px;
  right: 13px;
  margin-top: 13px;
  position: absolute;
  border: 0px transparent;
  background-color: transparent;
  border-radius: 25px;
  color: white;
}

.btn-send:hover{
  background-color: lightcyan;
  cursor: pointer;
  color: black
}

.textareas{
  background-color: transparent;
  border: 1px solid;
  border-radius: 5px;
  font-size: 15px;
  margin-top: 5px;
  margin-bottom: 5px;
  width: 200px;
  height: 35px;
  color: white;
}

.textareas:focus{
  background-color: transparent;
  border: 1px solid;
  outline: none;
  border-radius: 5px;
  color: white;
}

.textareas:active{
  color: white;
  background-color: transparent;
}

/* show-chat */
.show-chat{
  display: flex;
  position: fixed;
  align-items: center;
  justify-content: end;
  bottom: 5px;
  right: 5px;
  border-radius: 25px;
  height: 50px;
  width: 50px;
  background-color: lightcyan;
  border: .5px solid;
}

.show-chat:hover{
  background-color: rgb(109, 235, 235);
}

/* friend-modal */
.friend{
  align-items: center;
  justify-content: end;
  position: fixed;
  right:5px;
  bottom:5px;
  display: none;
}

.friend-content{
  width: 300px;
  height: 500px;
  background: linear-gradient(90deg, rgba(59,138,200,1) 2%, rgba(121,245,255,1) 95%);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* friend-header */
.friend-header{
  height: 40px;
  position: sticky;
  background-color: #454545;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.close-friend{
  background-color: transparent;
  border: 0px transparent;
  margin-top: 7px;
  height: 20px;
  width: 20px;
  display: flex;
  position: absolute;
  right: 15px;
  border-radius: 25px;
  font-weight: bold;
  color: white;
}

.friend-list{
  display: flex;
  position: absolute;
  left: 10px;
  top: 10px;
  font-size: 13px;
  color: white;
  font-weight: bold;
  text-transform: lowercase;
}

/* friend-box */
.friend-box{
  position: relative;
  overflow-y: scroll;
  overflow: overlay;
  max-height: 405px;
}

.friend-chat{
  width: 298px;
  background-color: transparent;
  border-top: 0px transparent;
  border-left: 0px transparent;
  border-right: 0px transparent;
  border-bottom: .1px solid;
  text-align: left;
}

/* friend-footer */
.friend-footer{
  width: 100%;
  min-height: 40px;
  max-height: 100px;
  background-color:#454545;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  display: flex;
  position: absolute;
  bottom: 0px;
}

.search{
  background-color: transparent;
  border: 1px solid;
  border-radius: 5px;
  font-size: 15px;
  margin-top: 5px;
  margin-bottom: 5px;
  width: 200px;
  left: 10px;
  width: 250px;
  font-weight: bold;
  color: white;
}

.btn-search{
  width: 25px;
  height: 25px;
  right: 10px;
  margin-top: 5px;
  position: absolute;
  border: 0px transparent;
  background-color: transparent;
  border-radius: 25px;
  color: white;
}

.btn-search:hover{
  background-color: lightgrey;
  color: black;
}

/* picker */
.picker{
  margin-left: 44%;
  position: fixed;
  display: flex;
  bottom: 10px;
  right: 310px;
}

.close-picker{
  border-radius: 25px;
  width: 40px;
  height: 40px;
  display: flex;
  position: absolute;
  z-index: 9900;
  margin-top: -20px;
  right: -10px;
  border: 0px;
  background-color: rgb(220, 124, 157, .5);
}

.pesan {
  white-space: nowrap; /* Mencegah teks melompat ke baris berikutnya */
    overflow: hidden;    /* Menyembunyikan teks yang berlebihan */
    text-overflow: ellipsis; /* Menambahkan ellipsis pada teks yang terpotong */
    max-width: 200px;
}