/* Extra CSS file for ChatRoom and Flash Stat */
.chat-room-panel {
  position: fixed;
  top: 0;
  right: -400px;
  /* Start off-screen */
  width: 400px;
  height: 100%;
  background: white;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
  transition: right 0.3s;
  padding: 20px;
  z-index: 1000;
}

.chat-room-panel.active {
  right: 0;
  /* Slide in */
}

.message {
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 10px;
  max-width: 80%;
  word-wrap: break-word;
}

.message.sent {
  background-color: #1380da;
  /* WhatsApp-like green */
  align-self: flex-end;
  /* Align to the right */
  text-align: right;
}

.message.received {
  background-color: #10c455;
  /* White background for received messages */
  align-self: flex-start;
  /* Align to the left */
  text-align: left;
}

#messages-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ticker {
  display: flex;
  flex-wrap: wrap;
  height: 50px;
  margin: 0 auto;
}

.news {
  width: 85%;
  padding: 0;
}

.news-title {
  padding: 7px 10px;
  text-align: center;
  background: #2558b3;
  min-width: 12%;
  vertical-align: bottom;
}

.news-title h5 {
  font-size: 18px;
  color: #ffffff;
}

.news marquee {
  font-size: 18px;
  margin-top: 12px;
}

.news-content p {
  display: inline;
}

.news-item {
  display: inline-block;
  /* Ensures the items display in a single line */
  margin-right: 30px;
  /* Adjust the space between each news item */
  padding: 0 10px;
  /* Optional: padding around each item */
}

.chat-room-panel {
  position: fixed;
  top: 0;
  right: -400px;
  /* Start off-screen */
  width: 400px;
  height: 100%;
  background: white;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
  transition: right 0.3s;
  padding: 20px;
  z-index: 1000;
}

.chat-room-panel.active {
  right: 0;
  /* Slide in */
}

.message {
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 10px;
  max-width: 80%;
  word-wrap: break-word;
}

.message.sent {
  background-color: #1380da;
  /* WhatsApp-like green */
  align-self: flex-end;
  /* Align to the right */
  text-align: right;
}

.message.received {
  background-color: #10c455;
  /* White background for received messages */
  align-self: flex-start;
  /* Align to the left */
  text-align: left;
}

#messages-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.data-sector-table {
  max-height: 45vh !important;
  overflow: scroll;
}

.email,
.phone {
  direction: ltr;
  unicode-bidi: bidi-override;
}

.parution-item {
  height: 150px;
  overflow: hidden;
}

.post-img {
  height: 220px;
  overflow: hidden;
}

.post-img .date {
  position: absolute;
  z-index: 100;
}

@media screen and (max-width: 500px) {
  .news-title {
    min-width: 30%;
  }

  .navbar .attr-nav {
    display: block !important;
  }
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-left {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left 45s linear infinite;
}

.marquee-right {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-right 45s linear infinite;
}

.marquee-left:hover,
.marquee-right:hover {
  animation-play-state: paused !important;
}


.marquee-item {
  display: inline-block;
  padding: 0 20px;
}

@keyframes blinkShadow {

  0%,
  100% {
    box-shadow: 0 4px 35px var(--shadow-color);
    /* Utilisation de la variable pour la couleur */
  }

  50% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0);
    /* Ombre invisible */
  }
}

.blink-success {
  --shadow-color: rgba(0, 255, 0, 0.5);
  /* Ombre verte */
  animation: blinkShadow 1s infinite;
}

.blink-danger {
  --shadow-color: rgba(255, 0, 0, 0.5);
  /* Ombre rouge */
  animation: blinkShadow 1s infinite;
}


@keyframes scroll-left {
  from {
    transform: translateX(1%);
  }

  to {
    transform: translateX(-100%);
  }
}

@keyframes scroll-right {
  from {
    transform: translateX(-1%);
  }

  to {
    transform: translateX(100%);
  }
}

.highcharts-datagrid-table {
  width: 100%;
  padding: 2% 5%;
}

.shortstat-carousel .item h5 {
  height: 70px;
  overflow: hidden;
}