   * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Segoe UI', sans-serif;
    }

    html, body {
      background: #111111;
      height: 100dvh;
      width: 100vw;
      color: #ffffff;
      overflow: hidden;
      scrollbar-width: none;
    }

    ::-webkit-scrollbar {
      display: none;
    }

    .fade-overlay {
      position: fixed;
      top: 0; left: 0;
      width: 100vw; height: 100vh;
      background-color: black;
      z-index: 9999;
      opacity: 1;
      transition: opacity 1s ease-in-out;
      pointer-events: none;
    }

    .chat-container {
      height: 100%;
      width: 100%;
      display: flex;
      flex-direction: column;
      background: #111111;
      position: relative;
    }

    .chat-title {
      position: absolute;
      top: 20px;
      left: 20px;
      font-size: 24px;
      font-weight: 600;
      z-index: 1;
      font-family: 'Orbitron', sans-serif; 
      background-color: rgba(0, 0, 0, 0.2);
      padding: 15px;
      border-radius: 25px;
      backdrop-filter: blur(10px);
    }

    .chat-messages {
      flex: 1;
      padding: 80px 20px 20px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
    }

    .message {
      margin-bottom: 15px;
      display: flex;
      width: 100%;
    }

    .message.user {
      justify-content: flex-end;
    }

    .message.ai {
      justify-content: flex-start;
    }

    .message-content {
      max-width: 85%;
      padding: 12px 16px;
      border-radius: 8px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
      width: fit-content;
      position: relative;
      display: flex;
      flex-direction: column;
    }

    .ai .message-content {
      background: transparent;
      box-shadow: none;
      color: #e0e0e0;
    }

    .user .message-content {
      background: #1a1a1a;
      color: #f4f4f4;
      border-radius: 25px;
      border-bottom-right-radius: 5px;
    }
    
    .main-response-container {
        margin-bottom: 10px;
    }

    .input-area {
      position: fixed;
      bottom: 20px;
      right: 20px;
      left: 20px;
      padding: 15px;
      background: rgba(0, 0, 0, 0.5);
      border-radius: 55px;
      max-height: 30%;
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
      display: flex;
      flex-direction: column;
      backdrop-filter: blur(10px);
    }

    .hstack {
      display: flex;
      flex-direction: row;
      align-items: center;
      width: 100%;
      height: auto;
    }

    textarea {
      flex: 1;
      padding: 12px;
      border: none;
      background: transparent;
      color: #ffffff;
      resize: none;
      font-size: 16px;
      margin-right: 10px;
      border-radius: 20px;
      min-height: 50px;
      max-height: 100px;
      overflow-y: auto;
    }

    textarea:focus {
      outline: none;
    }

    #sendButton {
      width: 50px;
      height: 50px;
      padding: 10px;
      background: #000000;
      border: none;
      border-radius: 50%;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    #sendButton:hover {
        background: #1a1a1a;
    }

    #sendButton::before {
      content: "\f1d8";
      font-family: "Font Awesome 6 Free";
      font-weight: 900;
      color: #ffffff;
      font-size: 20px;
    }

    .loading-animation-container {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 10px;
    }

    .loading-circle {
      width: 12px;
      height: 12px;
      background-color: #bbb;
      border-radius: 50%;
      animation: growShrink 1.2s ease-in-out infinite;
    }

    @keyframes growShrink {
      0%, 100% {
        transform: scale(0.6);
        opacity: 0.7;
      }
      50% {
        transform: scale(1);
        opacity: 1;
      }
    }

    .animated-gradient-text {
      font-size: 0.9em;
      background: linear-gradient(90deg, #ffffff, #777777, #ffffff);
      background-size: 200% 200%;
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      animation: gradientMove 2s linear infinite;
    }

    @keyframes gradientMove {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }
    
    .research-toggle-button, .think-toggle-button {
        background-color: #333;
        border: 1px solid #555;
        padding: 6px 12px;
        border-radius: 4px;
        font-weight: bold;
        color: #eee;
        cursor: pointer;
        margin-bottom: 8px;
        transition: background-color 0.2s ease;
    }
    .research-toggle-button:hover, .think-toggle-button:hover {
        background-color: #444;
    }

    .research-section, .think-section {
        display: none;
        color: #ccc;
        font-size: 0.9em;
        padding: 10px;
        border-left: 3px solid #777;
        margin-top: 5px;
        margin-bottom: 10px;
        background-color: rgba(255,255,255,0.05);
        border-radius: 0 4px 4px 0;
        max-height: 200px;
        overflow-y: auto;
    }
    
    .copy-button-container {
        display: flex;
        justify-content: flex-end;
        width: 100%;
        margin-top: 8px;
    }

    .copy-button {
        background: #333;
        border: none;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0.6;
        transition: opacity 0.2s ease, background-color 0.2s ease;
        margin-right: auto;
    }
    .message-content:hover .copy-button {
        opacity: 1;
    }
    .copy-button svg {
        width: 16px;
        height: 16px;
        fill: #fff;
    }
    .copy-button .check-icon { display: none; }
    .copy-button.copied .copy-icon { display: none; }
    .copy-button.copied .check-icon { display: block; }
    .copy-button.copied { background-color: #28a745; opacity: 1;}


    @media (max-width: 768px) {
      .chat-container {
        height: 100dvh;
      }

      .chat-messages {
        padding: 70px 10px 150px;
      }
      
      .input-area {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 10px;
        max-height: 40%;
      }

      .chat-title {
        left: 10px;
        top: 10px;
        font-size: 20px;
        padding: 10px;
      }

      .toggle-btn {
        padding: 6px 10px;
        font-size: 13px;
        gap: 5px;
      }

      textarea {
        font-size: 14px;
        margin-right: 8px;
        min-height: 40px;
      }

      #sendButton {
        width: 40px;
        height: 40px;
      }
      
      #sendButton:before {
        font-size: 16px;
      }
      .message-content {
        max-width: 90%;
      }
    }
    #initialMessageLabel {
      text-align: center;
      position: absolute;
      top: 40%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 1.5em;
      color: #aaa;
      z-index: 10;
      transition: opacity 0.5s ease-out;
      font-family: 'Orbitron', sans-serif;
    }