/* Reset and global settings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f0f0;
    margin: 0;
    padding: 0;
  }
  
  /* Main container with relative positioning */
  .chat-container {
    position: relative;
    width: 100%;
    height: 100%;
  }
  
  /* Fixed header at the top */
  .chat-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #075E54;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 100;
  }
  
  .header-left {
    display: flex;
    align-items: center;
  }
  
  .chat-header h1 {
    font-size: 1.2rem;
    margin-right: 10px;
  }
  
  .header-link {
    color: #fff;
    text-decoration: none;
    background-color: #128C7E;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 1rem;
  }
  
  /* Fixed footer at the bottom */
  .chat-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #f8f8f8;
    border-top: 1px solid #ccc;
    display: flex;
    align-items: center;
    padding: 0 10px;
    z-index: 100;
  }
  
  .chat-footer input[type="text"] {
    flex: 1;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-size: 1rem;
    margin-right: 10px;
  }
  
  .chat-footer button {
    background-color: #25D366;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .chat-footer button:hover {
    background-color: #20b85c;
  }
  
  /* Chat messages area fills the space between header and footer */
  .chat-messages {
    position: absolute;
    top: 60px;
    bottom: 60px;
    left: 0;
    right: 0;
    overflow-y: auto;
    padding: 10px;
    background-color: #ECE5DD;
  }
  
  /* Message bubbles styling */
  .message {
    margin-bottom: 10px;
    max-width: 80%;
    padding: 10px;
    border-radius: 8px;
    clear: both;
  }
  
  .message strong {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
  }
  
  .message.mine {
    background-color: #DCF8C6;
    float: right;
  }
  
  .message.others,
  .message.ai {
    background-color: #ffffff;
    float: left;
  }
  
  /* Mobile adjustments */
  @media (max-width: 600px) {
    .chat-header, .chat-footer {
      height: 50px;
      padding: 0 8px;
    }
    
    .chat-header h1 {
      font-size: 1rem;
    }
    
    .header-link {
      padding: 4px 8px;
      font-size: 0.9rem;
    }
    
    .chat-footer input[type="text"] {
      padding: 8px;
      font-size: 0.9rem;
      margin-right: 5px;
    }
    
    .chat-footer button {
      padding: 8px 12px;
      font-size: 0.9rem;
    }
    
    .chat-messages {
      top: 50px;
      bottom: 50px;
    }
  }
  