body, html { height: 100%; font-family: Arial, sans-serif; }
  .sidebar {
    width: 250px;
    color: white;
    overflow-y: auto;
    transition: transform 0.3s ease;
  }
  .sidebar.hidden {
    transform: translateX(-100%);
  }
  .chat-title {
    padding: 15px;
    border-bottom: 1px solid #34495e;
    cursor: pointer;
    list-style-type: none;
    background: #2c3e50;
  }
  .chat-title:hover {
    background: #34495e;
  }
  .main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ecf0f1;
    position: relative;
  }
  .title-bar {
    background: #34495e;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 20px;
    position: relative;
  }
  .messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
  }
  .message {
    margin-bottom: 15px;
    max-width: 60%;
    padding: 10px;
    border-radius: 10px;
    clear: both;
  }
  .sent {
    background: #3498db;
    color: white;
    float: right;
  }
  .received {
    background: #bdc3c7;
    float: left;
  }
  .compose-area {
    position: relative;
    padding: 10px;
    background: white;
    display: flex;
    gap: 10px;
    border-top: 1px solid #ccc;
    align-items: center;
  }
  .spinner-container {
    display: none;
   /* position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%); */
    background: white;
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-size: 14px;
    width: 200px;
  }
  #top-message {
    text-align: center;
    font-weight: bold;
    padding: 5px 0;
  }
  #marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
  }
  .marquee-track {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 20s linear infinite;
  }
  @keyframes scroll-left {
    0%   { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
  }
  .hamburger {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: white;
    z-index: 1100;
  }
  @media (max-width: 768px) {
    .sidebar {
      position: absolute;
      height: 100%;
      z-index: 1000;
      transform: translateX(-100%);
    }
    .sidebar.hidden {
      transform: translateX(0);
    }
    .hamburger {
      display: block;
    }
  }