:root {
    scroll-behavior: smooth;
  }

  body {
    font-family: "Open Sans", sans-serif;
    color: #444444;
  }

  a {
    color: #4154f1;
    text-decoration: none;
  }

  a:hover {
    color: #717ff5;
    text-decoration: none;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: "Nunito", sans-serif;
  }

  /*--------------------------------------------------------------
  # Main
  --------------------------------------------------------------*/

  #topbar
{
  background-color: #042e4f;
  height: 40px;
}
#header {
    top: 40px;
}

  #main {
    margin-top: 120px;
    padding: 20px 30px;
    transition: all 0.3s;
  }

  @media (max-width: 1199px) {
    #main {
      padding: 20px;
    }
  }

  /*--------------------------------------------------------------
  # Page Title
  --------------------------------------------------------------*/
  .pagetitle {
    margin-bottom: 10px;
  }

  .pagetitle h1 {
    font-size: 24px;
    margin-bottom: 0;
    font-weight: 600;
    color: #012970;
  }

  /*--------------------------------------------------------------
  # Override some default Bootstrap stylings
  --------------------------------------------------------------*/
  .dropdown-menu {
    border-radius: 4px;
    padding: 10px 0;
    animation-name: dropdown-animate;
    animation-duration: 0.2s;
    animation-fill-mode: both;
    border: 0;
    box-shadow: 0 5px 30px 0 rgba(82, 63, 105, 0.2);
  }

  .dropdown-menu .dropdown-header,
  .dropdown-menu .dropdown-footer {
    text-align: center;
    font-size: 15px;
    padding: 10px 25px;
  }

  .dropdown-menu .dropdown-footer a {
    color: #444444;
    text-decoration: underline;
  }

  .dropdown-menu .dropdown-footer a:hover {
    text-decoration: none;
  }

  .dropdown-menu .dropdown-divider {
    color: #a5c5fe;
    margin: 0;
  }

  .dropdown-menu .dropdown-item {
    font-size: 14px;
    padding: 10px 15px;
    transition: 0.3s;
  }

  .dropdown-menu .dropdown-item i {
    margin-right: 10px;
    font-size: 18px;
    line-height: 0;
  }

  .dropdown-menu .dropdown-item:hover {
    background-color: #f6f9ff;
  }

  @keyframes dropdown-animate {
    0% {opacity: 0; }
    100% {opacity: 1;   }
    0% {opacity: 0; }
  }

  /* Light Backgrounds */
  .bg-primary-light {
    background-color: #cfe2ff;
    border-color: #cfe2ff;
  }

  .bg-secondary-light {
    background-color: #e2e3e5;
    border-color: #e2e3e5;
  }

  .bg-success-light {
    background-color: #d1e7dd;
    border-color: #d1e7dd;
  }

  .bg-danger-light {
    background-color: #f8d7da;
    border-color: #f8d7da;
  }

  .bg-warning-light {
    background-color: #fff3cd;
    border-color: #fff3cd;
  }

  .bg-info-light {
    background-color: #cff4fc;
    border-color: #cff4fc;
  }

  .bg-dark-light {
    background-color: #d3d3d4;
    border-color: #d3d3d4;
  }

  /* Card */
  .card {
    margin-bottom: 30px;
    border: none;
    border-radius: 5px;
    box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
  }

  .card-header,
  .card-footer {
    border-color: #ebeef4;
    background-color: #fff;
    color: #798eb3;
    padding: 15px;
  }

  .card-title {
    padding: 20px 0 15px 0;
    font-size: 18px;
    font-weight: 500;
    color: #012970;
    font-family: "Poppins", sans-serif;
  }

  .card-title span {
    color: #899bbd;
    font-size: 14px;
    font-weight: 400;
  }

  .card-body {
    padding: 0 20px 20px 20px;
  }

  .card-img-overlay {
    background-color: rgba(255, 255, 255, 0.6);
  }

  /* Alerts */
  .alert-heading {
    font-weight: 500;
    font-family: "Poppins", sans-serif;
    font-size: 20px;
  }

  /* Close Button */
  .btn-close {
    background-size: 25%;
  }

  .btn-close:focus {
    outline: 0;
    box-shadow: none;
  }

  /* Accordion */
  .accordion-item {
    border: 1px solid #ebeef4;
  }

  .accordion-button:focus {
    outline: 0;
    box-shadow: none;
  }

  .accordion-button:not(.collapsed) {
    color: #012970;
    background-color: #f6f9ff;
  }

  .accordion-flush .accordion-button {
    padding: 15px 0;
    background: none;
    border: 0;
  }

  .accordion-flush .accordion-button:not(.collapsed) {
    box-shadow: none;
    color: #4154f1;
  }

  .accordion-flush .accordion-body {
    padding: 0 0 15px 0;
    color: #3e4f6f;
    font-size: 15px;
  }


  /*--------------------------------------------------------------
  # Dashboard
  --------------------------------------------------------------*/
  /* Filter dropdown */
  .dashboard .filter {
    position: absolute;
    right: 0px;
    top: 15px;
  }

  .dashboard .filter .icon {
    color: #aab7cf;
    padding-right: 20px;
    padding-bottom: 5px;
    transition: 0.3s;
    font-size: 16px;
  }

  .dashboard .filter .icon:hover,
  .dashboard .filter .icon:focus {
    color: #4154f1;
  }

  .dashboard .filter .dropdown-header {
    padding: 8px 15px;
  }

  .dashboard .filter .dropdown-header h6 {
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #aab7cf;
    margin-bottom: 0;
    padding: 0;
  }

  .dashboard .filter .dropdown-item {
    padding: 8px 15px;
  }

  /* Info Cards */
  .dashboard .info-card {
    padding-bottom: 10px;
  }

  .dashboard .info-card h6 {
    font-size: 28px;
    color: #012970;
    font-weight: 700;
    margin: 0;
    padding: 0;
  }

  .dashboard .card-icon {
    font-size: 32px;
    line-height: 0;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    flex-grow: 0;
  }

  .dashboard .sales-card .card-icon {
    color: #4154f1;
    background: #f6f6fe;
  }

  .dashboard .revenue-card .card-icon {
    color: #2eca6a;
    background: #e0f8e9;
  }

  .dashboard .customers-card .card-icon {
    color: #ff771d;
    background: #ffecdf;
  }

  /* Activity */
  .dashboard .activity {
    font-size: 14px;
  }

  .dashboard .activity .activity-item .activite-label {
    color: #888;
    position: relative;
    flex-shrink: 0;
    flex-grow: 0;
    min-width: 64px;
  }

  .dashboard .activity .activity-item .activite-label::before {
    content: "";
    position: absolute;
    right: -11px;
    width: 4px;
    top: 0;
    bottom: 0;
    background-color: #eceefe;
  }

  .dashboard .activity .activity-item .activity-badge {
    margin-top: 3px;
    z-index: 1;
    font-size: 11px;
    line-height: 0;
    border-radius: 50%;
    flex-shrink: 0;
    border: 3px solid #fff;
    flex-grow: 0;
  }

  .dashboard .activity .activity-item .activity-content {
    padding-left: 10px;
    padding-bottom: 20px;
  }

  .dashboard .activity .activity-item:first-child .activite-label::before {
    top: 5px;
  }

  .dashboard .activity .activity-item:last-child .activity-content {
    padding-bottom: 0;
  }

  /* News & Updates */
  .dashboard .news .post-item+.post-item {
    margin-top: 15px;
  }

  .dashboard .news img {
    width: 80px;
    float: left;
    border-radius: 5px;
  }

  .dashboard .news h4 {
    font-size: 15px;
    margin-left: 95px;
    font-weight: bold;
    margin-bottom: 5px;
  }

  .dashboard .news h4 a {
    color: #012970;
    transition: 0.3s;
  }

  .dashboard .news h4 a:hover {
    color: #4154f1;
  }

  .dashboard .news p {
    font-size: 14px;
    color: #777777;
    margin-left: 95px;
  }

  /* Recent Sales */
  .dashboard .recent-sales {
    font-size: 14px;
  }

  .dashboard .recent-sales .table thead {
    background: #f6f6fe;
  }

  .dashboard .recent-sales .table thead th {
    border: 0;
  }

  .dashboard .recent-sales .dataTable-top {
    padding: 0 0 10px 0;
  }

  .dashboard .recent-sales .dataTable-bottom {
    padding: 10px 0 0 0;
  }

  /* Top Selling */
  .dashboard .top-selling {
    font-size: 14px;
  }

  .dashboard .top-selling .table thead {
    background: #f6f6fe;
  }

  .dashboard .top-selling .table thead th {
    border: 0;
  }

  .dashboard .top-selling .table tbody td {
    vertical-align: middle;
  }

  .dashboard .top-selling img {
    border-radius: 5px;
    max-width: 60px;
  }

  /*--------------------------------------------------------------
  # Icons list page
  --------------------------------------------------------------*/
  .iconslist {
    display: grid;
    max-width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    padding-top: 15px;
  }

  .iconslist .icon {
    background-color: #fff;
    border-radius: 0.25rem;
    text-align: center;
    color: #012970;
    padding: 15px 0;
  }

  .iconslist i {
    margin: 0.25rem;
    font-size: 2.5rem;
  }

  .iconslist .label {
    font-family: var(--bs-font-monospace);
    display: inline-block;
    width: 100%;
    overflow: hidden;
    padding: 0.25rem;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #666;
  }

  /** ADMIN CHAT ROOM **/
.chatrooms {
  padding: 20px 0;
}

#chatroom-container {
  max-height: 700px;
  overflow-y: scroll;
  overflow-x: hidden;
  background-color: whitesmoke;
  box-shadow: -2px 2px 12px gray;
}
.chat-card {
  padding: 0px;
  float: left;
  border: solid 1px rgb(218, 218, 218);
  border-radius: 6px;
  margin: 8px;
  background-color: white;
  /* overflow: hidden; */
  width: 300px;
  height: 400px;

  resize: both;
  overflow: auto;

}


.chat-card-header{
  background-color: #3b5f6a;
  color: white;
  font-size: 0.96em;
  padding: 1px;
  border-radius: 4px 4px 0 0;
  height: 36px;
  line-height: 1.1;
  overflow: hidden;
  text-align: center;
}

.chat-card:nth-child(even) {
  background-color: #eaecf5; }

.chat-card:nth-child(even) .chat-card-header{
  background-color: #48527c;
}

.chat-card-body .admin {
  background-color: #dcdee7; }

.chat-card:nth-child(even) .chat-card-footer{
  background-color: #48527c;}

.chat-card-body{
  padding: 4px;
  height: calc(100% - 134px);
  overflow-y: scroll;
}

.chat-card-body::-webkit-scrollbar {
  width: 10px;
}

.chat-card-body::-webkit-scrollbar-thumb {
  background-color: #843434;
  border-left: solid 2px white;
  border-radius: 2px;
}

.chat-card-body::-webkit-scrollbar-thumb:hover {
  border: none;
}

.chat-card-body::-webkit-scrollbar-track {
}

.chat-message {
  font-size: 0.8em;
  padding: 4px;
}

.chat-message em{
  color: #7a8c93;
  font-size: 0.7em;
}

.chat-card-footer{
  padding: 6px;
  background-color: #3b5f6a;
}

.chat-card-footer button{
  background-color: white;
  border: solid 1px #7a97c9;
  padding: 0px 18px;
  border-radius: 4px;
}
.chat-card-footer button:hover{
  background-color: #fff4d0;}

.chat-card-footer button:focus{
  background-color: #fff4d0;}

.chat-card-footer button:active{
  background-color: #ffe799;}

.chat-card-footer input {
  padding: 0px 6px;
  margin-right: 6px;
  border-radius: 4px;
  border: solid 1px white;
  width: 70%;
}
.chat-card-footer input::placeholder {
  color: rgb(209, 209, 209);
}
.chat-card-footer input:focus::placeholder {
  opacity: 0;
}
@keyframes animateBackground {
  0% {
      background-color: #f39c12;
  }
  10% {
    background-color: white;
  } 
  20% {
      background-color: #f39c12;
  }
  30% {
    background-color: white;
  }
  40% {
      background-color: #f39c12; 
  }
  50% {
    background-color: #f39c12; 
  }
  60% {
  background-color: white;
  } 
  70% {
      background-color: #f39c12;
  }
  80% {
    background-color: #c35b06; 
  }
  100% {
      background-color: #f39c12; 
  }
}

@keyframes animateRoomBack {
    0% {
      background-color: #f39c12;
      }
      100% {
          background-color: #784c06; 
      }
}
/* Apply the animation to the .recent_msg class */
.recent_msg {
  animation: animateBackground 4s ease-in-out;
}

.recent_room {
  animation: animateRoomBack 10s ease-out;
}

.status_display {
  height: 14px;
  width: 34px;
  border: solid 1px white;
  background-color: rgb(249, 32, 32);
  margin: 0 0 0 250px;
  padding: 0;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  z-index:9;
  position: absolute;
}
.status_display::after{
  content: 'Online';
  font-size: 0.6em;
  padding: 0px;
  margin:0px;
  color: white;
  position: absolute;
}