    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Inter', sans-serif;
    }

    body {
      background-color: #121212;
      height: 100dvh;
      display: flex;
      flex-direction: column;
    
      overflow: hidden;
      position: relative;
       margin: 0;
      padding: 0;
    }
   

    #network {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
      opacity: 0.3;
    }
.nothing{
  position: relative;
  height: 60px;
  background-color: rgba(0, 123, 255, 0);
}
    /* Floating Navigation Header Styles */
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width:100%;
height: 0px;
  position: sticky;
 top: 30px;
  z-index: 10;
  flex-shrink: 0;
}

.header-left {
 
  display: flex;
  align-items: center;
  background: #1c1c1c;
  padding:  6px 12px;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(160, 166, 255, 0.4);
}

.app-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #fff3f3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #07006b;
  font-size: 20px;
  margin-right: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.app-name {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.header-right {
  display: flex;
  
  background: #1c1c1c;
   padding: 6px 12px;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(160, 166, 255, 0.4);
}

.icon-button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
 margin-right: 12px;
  background-color: #2c2c2c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16 px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
}
.icon-button2 {
  width: 30px;
  height: 30px;
  border-radius: 50%;
 
  background-color: #2c2c2c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16 px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
}

.icon-button:hover {
  background-color: #007bff;
  transform: scale(1.1);
}


    /* Chat Container Styles */
    .app-container {
      flex: 1;
      display: flex;
      flex-direction: column;
      width: 100%;
      margin: 0 auto;
      overflow: hidden;
      position: relative;
      border-radius: 20px;
      backdrop-filter: blur(10px);
      padding: 0px 8px;
    }

    .chat-scroll-container {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow-y: auto;
      padding: 0 8px;
    }

    .chat-scroll-container::-webkit-scrollbar {
      width: 0px;
    }

    .chat-scroll-container::-webkit-scrollbar-thumb {
      background-color: #555;
      border-radius: 6px;
      border: 1px solid #2c2c2c;
    }

    .chat-area {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding-bottom: 10px;
      min-height: min-content;
    }

    .message {
      max-width: 100%;
      padding: 8px 12px;
      border-radius: 14px;
      font-size: 14px;
      line-height: 1.4;
      word-wrap: break-word;
      position: relative;
    }

    .message.sent {
      background-color: #2a2a2a;
      color: #ccc;
      align-self: flex-end;
      border-bottom-right-radius: 4.5px;
    }

    .message.received {
      background-color: #2a2a2a00;
      color: #ccc;
      align-self: flex-start;
      
    }


   .message.received img{
    border-radius: 12px;
   }

    .message-time {
      font-size: 10px;
      color: #777;
      margin-top: 4px;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 4px;
    }

    .message.received .message-time {
      color: #999;
      justify-content: flex-start;
    }

    .message.sent .message-time {
      color: #666;
    }

    .double-tick {
      font-size: 12px;
      margin-left: 2px;
    }

    .double-tick.read {
      color: #4fc3f7;
    }

    .file-message {
      max-width: 250px;
      padding: 0;
      border-radius: 12px;
      overflow: hidden;
      cursor: pointer;
    }

    .file-message img, .file-message video {
      width: 100%;
      max-height: 200px;
      object-fit: cover;
    }

    .file-info {
      padding: 8px 10px;
      background: rgba(0, 0, 0, 0.5);
      color: white;
      font-size: 12px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .file-icon {
      font-size: 16px;
    }

    .pdf-preview {
      background: #f5f5f5;
      padding: 15px;
      text-align: center;
      color: #333;
    }

    .chat-input-wrapper {
      background-color: #1c1c1c;
      border-radius: 20px;
      display: flex;
      flex-wrap: wrap;
      padding: 6px 10px;
      width: 100%;
      position: relative;
      bottom: 14px;
      box-shadow: 0 4px 12px rgba(160, 166, 255, 0.4);
     
      
    }





    
    .file-preview {
      display: flex;
      gap: 6px;
      flex-wrap: nowrap;
      width: 100%;
      margin-bottom: 6px;
      overflow-x: auto;
      overflow-y: hidden;
      scrollbar-width: none;
    }

    .file-preview::-webkit-scrollbar {
      display: none;
    }

    .file-box {
      position: relative;
      width: 48px;
      height: 48px;
      flex-shrink: 0;
      cursor: pointer;
    }

    .file-box img, .file-box video {
      width: 100%;
      height: 100%;
      border-radius: 6px;
      object-fit: cover;
      border: 1px solid #333;
    }

    .file-box .file-icon-box {
      width: 100%;
      height: 100%;
      background: #2c2c2c;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #ccc;
      font-size: 18px;
      border: 1px solid #333;
    }

    .close-btn {
      position: absolute;
      top: -5px;
      right: -5px;
      background: #000;
      color: #fff;
      border-radius: 50%;
      font-size: 10px;
      padding: 1px 5px;
      cursor: pointer;
      border: 1px solid #555;
      z-index: 2;
    }

    textarea {
      width: 100%;
      border: none;
      outline: none;
      resize: none;
      background: transparent;
      color: #ddd;
      font-size: 14px;
      padding: 4px 0 8px 6px;
      line-height: 1.3;
      min-height: 0;
      max-height: 130px;
      overflow-y: auto;
      margin-bottom: 0;
      padding-bottom: 0;
    }

    textarea::-webkit-scrollbar {
      width: 3px;
    }

    textarea::-webkit-scrollbar-thumb {
      background-color: #555;
      border-radius: 6px;
      border: 1px solid #2c2c2c;
    }

    .button-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      margin-top: 12px;
    }

    .left-buttons {
      display: flex;
      align-items: center;
      gap: 8px;
    }

.right-bottons{
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
.icon-btn #micBtn-active {
  color: red; /* Active mic indicator */
}

    .icon-btn, .send-btn, .think-btn, .icon-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      height: 30px;
      font-size: 12px;
    }

    .icon-btn {
      width: 30px;
      background-color: #2c2c2c;
      color: white;
      border-radius: 50%;
      border: none;
    }

    .think-btn {
      background-color: #2c2c2c;
      color: white;
      border: none;
      border-radius: 15px;
      padding: 0 10px;
      gap: 4px;
    }

   .send-btn {
      width: 30px;
      background-color: #fff;
      border: none;
      border-radius: 50%;
      color: #000;
      transition: background-color 0.3s, opacity 0.3s
    }






.send-btn.disabled {
  background-color: #ffffff; /* Dimmed color for disabled state */
  opacity: 0.5;
  cursor: not-allowed;
}

.send-btn.loading {
  background-color: #ffffff; /* Color during loading */
  opacity: 0.5;
  cursor: pointer;
}

.send-btn .fa-spinner {
  animation: spin 1s linear infinite; /* Pulsing animation */
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Ensure the button icon is centered */
.send-btn i {
  font-size: 12px;
}




.thinking-dots {
  display: inline-flex;
}
.thinking-dots span {
  width: 8px;
  height: 8px;
  margin: 0 2px;
  background: #999;
  border-radius: 50%;
  animation: dot-bounce 1.4s infinite ease-in-out both;
}
.thinking-dots span:nth-child(1) { animation-delay: -0.32s; }
.thinking-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes dot-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}


.writing-pen {
  display: inline-block;
  font-size: 0.8em;
  color: #949494; /* Cool blue color */
  animation: pen-write 0.5s infinite alternate;
}
@keyframes pen-write {
  0% { transform: translateX(0); }
  100% { transform: translateX(2px); }
}




    

    /* Modal styles */
    .modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.9);
      z-index: 100;
      align-items: center;
      justify-content: center;
    }

    .modal-content {
      max-width: 90%;
      max-height: 90%;
    }

    .modal-content img, .modal-content video {
      max-width: 100%;
      max-height: 80vh;
      object-fit: contain;
    }

    .pdf-viewer {
      width: 80vw;
      height: 80vh;
      border: none;
      background: white;
    }

    .close-modal {
      position: absolute;
      top: 20px;
      right: 30px;
      color: white;
      font-size: 30px;
      cursor: pointer;
    }

    .modal-title {
      position: absolute;
      bottom: 20px;
      left: 0;
      right: 0;
      text-align: center;
      color: white;
      padding: 10px;
      background: rgba(0, 0, 0, 0.7);
    }


    /* Message deletion menu */
    .delete-menu {
      position: fixed;
      top: 45%;
      left: 50%;
      transform: translateX(-50%);
      background-color: #2c2c2c;
      border-radius: 20px;
      padding: 12px 0;
      box-shadow: 0 4px 20px rgba(0,0,0,0.3);
      z-index: 1000;
      display: none;
      flex-direction: column;
      width: 220px;
    }

    .delete-menu.show {
      display: flex;
    }

    .delete-option {
      padding: 12px 20px;
      color: white;
      font-size: 14px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .delete-option:hover {
      background-color: #3a3a3a;
    }

    .delete-option i {
      font-size: 16px;
    }

    .delete-option.delete-for-me {
      color: #f87171;
    }

    .delete-option.delete-for-everyone {
      color: #f87171;
    }

    .message-selected {
      opacity: 0.7;
      background-color: rgba(207, 25, 25, 0.418) !important;
    }