
    *,
    *::before,
    *::after {
      box-sizing: border-box;
    }
    
    html, body {
      margin: 0;
      padding: 0;
    }

    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      margin: 0;
      background: #f5f7fa;
      color: #222;
      line-height: 1.6;
      min-height: 100vh;
    }

    .main-header {
      background: #222;
      color: #eee;
      text-align: center;
    }

    .header-content {
      max-width: 1200px;
      margin: 0;
      padding: 0;
    }

    .logo {
      font-weight: 700;
      font-size: 2.75rem;
      margin: 0 0 0.25rem;
      color: #eee;
    }

    .tagline {
      font-size: 1.25rem;
      font-style: italic;
      color: #999;
      margin: 0.5rem 0 2rem;
      transition: opacity 1s ease, transform 1s ease;
      opacity: 1;
    }

    .tagline.fade-out {
      opacity: 0;
      transform: translateY(10px);
    }

    .search-container {
      max-width: 600px;
      margin: 0 auto;
    }

    .search-box {
      display: flex;
      gap: 0.5rem;
      align-items: center;
      background: white;
      padding: 0.5rem;
      border-radius: 25px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    #main-search {
      flex: 1;
      padding: 0.75rem 1rem;
      border: none;
      font-size: 1rem;
      border-radius: 20px;
      outline: none;
    }

    .search-button, .feeling-button {
      padding: 0.75rem 1.5rem;
      border: none;
      border-radius: 20px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .search-button {
      background: #4285f4;
      color: white;
    }

    .search-button:hover {
      background: #3367d6;
    }

    .feeling-button {
      background: #34a853;
      color: white;
    }

    .feeling-button:hover {
      background: #2d8e47;
    }

    .tab-navigation {
      background: white;
      border-bottom: 1px solid #e8eaed;
      position: sticky;
      top: 0;
      z-index: 100;
    }

    .tab-container {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      padding: 0 1rem;
    }

    .tab-button {
      background: none;
      border: none;
      padding: 1rem 1.5rem;
      cursor: pointer;
      font-size: 0.9rem;
      color: #5f6368;
      border-bottom: 3px solid transparent;
      transition: all 0.2s ease;
    }

    .tab-button:hover {
      color: #202124;
      background: #f8f9fa;
    }

    .tab-button.active {
      color: #4285f4;
      border-bottom-color: #4285f4;
    }

    .main-content {
      max-width: 1200px;
      margin: 0 auto;
      padding: 1rem;
      min-height: calc(100vh - 300px);
    }

    .tab-content {
      display: none;
    }

    .tab-content.active {
      display: block;
    }

    /* AI Chat Specific Styles */
    .ai-chat-container {
      max-width: 800px;
      margin: 0 auto;
      background: white;
      border-radius: 8px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
      overflow: hidden;
    }

    .ai-header {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 1.5rem;
      border-bottom: 1px solid #e8eaed;
      background: #f8f9fa;
    }

    .ai-avatar {
      width: 50px;
      height: 50px;
      background: linear-gradient(135deg, #4285f4, #34a853);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
    }

    .ai-messages {
      height: 400px;
      overflow-y: auto;
      padding: 1rem;
      background: #fafafa;
    }

    .message {
      display: flex;
      gap: 1rem;
      margin-bottom: 1.5rem;
      align-items: flex-start;
    }

    .message.user {
      flex-direction: row-reverse;
    }

    .message-avatar {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.9rem;
      flex-shrink: 0;
    }

    .message.ai .message-avatar {
      background: linear-gradient(135deg, #4285f4, #34a853);
      color: white;
    }

    .message.user .message-avatar {
      background: #4285f4;
      color: white;
    }

    .message-content {
      background: white;
      padding: 1rem;
      border-radius: 12px;
      max-width: 70%;
      line-height: 1.5;
      font-size: 0.9rem;
      white-space: pre-line;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    .message.user .message-content {
      background: #4285f4;
      color: white;
    }

    .ai-input-container {
      padding: 1rem;
      border-top: 1px solid #e8eaed;
      background: white;
    }

    .ai-input-box {
      display: flex;
      gap: 0.5rem;
      align-items: center;
    }

    .ai-input {
      flex: 1;
      padding: 0.75rem;
      border: 1px solid #e8eaed;
      border-radius: 25px;
      font-size: 0.9rem;
      outline: none;
    }

    .ai-send-button {
      padding: 0.75rem 1.5rem;
      background: #4285f4;
      color: white;
      border: none;
      border-radius: 25px;
      cursor: pointer;
      font-weight: 500;
      transition: background-color 0.2s ease;
    }

    .ai-send-button:hover {
      background: #3367d6;
    }

    .ai-send-button:disabled {
      background: #ccc;
      cursor: not-allowed;
    }

    .thinking {
      font-style: italic;
      color: #666;
    }

    /* Other content styles */
    .search-results {
      display: flex;
      gap: 2rem;
    }

    .results-container {
      flex: 2;
    }

    .sidebar {
      flex: 1;
      max-width: 300px;
    }

    .search-result {
      background: white;
      border-radius: 8px;
      padding: 1.5rem;
      margin-bottom: 1rem;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .result-domain {
      color: #5f6368;
      font-size: 0.85rem;
      margin-bottom: 0.5rem;
    }

    .result-title {
      color: #4285f4;
      font-size: 1.2rem;
      font-weight: 500;
      margin-bottom: 0.5rem;
    }

    .result-description {
      color: #5f6368;
      line-height: 1.5;
    }

    .tab-content-area {
      background: white;
      border-radius: 8px;
      padding: 2rem;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
      text-align: center;
    }

    .main-footer {
      background: #222;
      color: #999;
      text-align: center;
      padding: 0;
      font-size: 0.85rem;
    }

    .main-footer a {
      color: #999;
      text-decoration: none;
      margin: 0 0.5em;     
    }

    .main-footer a:hover {
      text-decoration: underline;
    }

    .limited-width {
      max-width: 1200px;
      margin: 0 auto;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
      .search-results {
        flex-direction: column;
      }
      .sidebar {
        max-width: none;
      }
      .search-box {
        flex-direction: column;
        gap: 0.75rem;
      }
      .search-button, .feeling-button {
        width: 100%;
      }
      .ai-input-box {
        flex-direction: column;
        gap: 0.75rem;
      }
      .ai-input, .ai-send-button {
        width: 100%;
      }
    }

    /* Chat Styles */
    .chat-container {
      display: flex;
      height: 600px;
      background: white;
      border-radius: 8px;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
      overflow: hidden;
    }

    .chat-sidebar {
      width: 300px;
      border-right: 1px solid #e8eaed;
      display: flex;
      flex-direction: column;
    }

    .chat-header {
      padding: 1rem;
      border-bottom: 1px solid #e8eaed;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .chat-header h3 {
      margin: 0;
      font-size: 1.1rem;
      color: #202124;
    }

    .new-chat-btn {
      padding: 0.5rem;
      background: #4285f4;
      color: white;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-size: 0.8rem;
    }

    .chat-search {
      padding: 1rem;
      border-bottom: 1px solid #e8eaed;
    }

    #chat-search {
      width: 100%;
      padding: 0.75rem;
      border: 1px solid #e8eaed;
      border-radius: 6px;
      font-size: 0.9rem;
    }

    .chat-list {
      flex: 1;
      overflow-y: auto;
    }

    .chat-item {
      padding: 1rem;
      border-bottom: 1px solid #f8f9fa;
      cursor: pointer;
      transition: background-color 0.2s ease;
    }

    .chat-item:hover, .chat-item.active {
      background: #f8f9fa;
    }

    .chat-item.active {
      border-left: 3px solid #4285f4;
    }

    .chat-item-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.25rem;
    }

    .chat-name {
      font-weight: 500;
      color: #202124;
      font-size: 0.9rem;
    }

    .chat-time {
      font-size: 0.8rem;
      color: #5f6368;
    }

    .chat-preview {
      color: #5f6368;
      font-size: 0.8rem;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .chat-main {
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .chat-conversation-header {
      padding: 1rem;
      border-bottom: 1px solid #e8eaed;
      background: #f8f9fa;
    }

    .chat-messages {
      flex: 1;
      overflow-y: auto;
      padding: 1rem;
    }

    .chat-message {
      display: flex;
      gap: 0.75rem;
      margin-bottom: 1rem;
      align-items: flex-start;
    }

    .chat-message.user {
      flex-direction: row-reverse;
    }

    .chat-avatar {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.8rem;
      font-weight: 500;
      color: white;
      flex-shrink: 0;
    }

    .chat-message-content {
      background: #f8f9fa;
      padding: 0.75rem 1rem;
      border-radius: 12px;
      max-width: 70%;
      font-size: 0.9rem;
      line-height: 1.4;
    }

    .chat-message.user .chat-message-content {
      background: #4285f4;
      color: white;
    }

    .chat-input-container {
      padding: 1rem;
      border-top: 1px solid #e8eaed;
      display: flex;
      gap: 0.5rem;
    }

    .chat-input {
      flex: 1;
      padding: 0.75rem;
      border: 1px solid #e8eaed;
      border-radius: 25px;
      font-size: 0.9rem;
    }

    .chat-send-button {
      width: 70px;
      padding: 0.75rem;
      background: #4285f4;
      color: white;
      border: none;
      border-radius: 25px;
      cursor: pointer;
      font-weight: 500;
    }

    .chat-send-button:hover {
      background: #3367d6;
    }
	
