:root {
            --primary: #0f0c29;
            --secondary: #302b63;
            --accent: #00c6ff;
            --accent2: #ff2d75;
            --light: #e0e0ff;
            --dark: #090721;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Exo 2', sans-serif;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: var(--light);
            min-height: 100vh;
            overflow-x: hidden;
            position: relative;
        }
        
        body::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(circle at 10% 20%, rgba(48, 43, 99, 0.3) 0%, transparent 20%),
                radial-gradient(circle at 90% 80%, rgba(0, 198, 255, 0.2) 0%, transparent 20%),
                radial-gradient(circle at 50% 30%, rgba(255, 45, 117, 0.15) 0%, transparent 30%);
            z-index: -1;
        }
        
        /* Navbar */
        nav {
            background: rgba(15, 12, 41, 0.8);
            backdrop-filter: blur(10px);
            padding: 1rem 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 100;
            border-bottom: 1px solid rgba(0, 198, 255, 0.2);
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-family: 'Orbitron', sans-serif;
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--accent);
            text-shadow: 0 0 10px rgba(0, 198, 255, 0.7);
        }
        
        .logo i {
            color: var(--accent2);
        }
        
        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
        }
        
        .nav-links a {
            color: var(--light);
            text-decoration: none;
            font-weight: 400;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            position: relative;
        }
        
        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent);
            transition: width 0.3s ease;
        }
        
        .nav-links a:hover::after {
            width: 100%;
        }
        
        .nav-links a:hover {
            color: var(--accent);
        }
        
        /* Main Content */
        .container {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 0 2rem;
        }
        
        .tabs {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
        }
        
        .tab-btn {
            background: rgba(48, 43, 99, 0.5);
            border: none;
            padding: 1rem 2rem;
            border-radius: 50px;
            color: var(--light);
            font-family: 'Exo 2', sans-serif;
            font-size: 1.1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            z-index: 1;
        }
        
        .tab-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 0;
            height: 100%;
            background: linear-gradient(90deg, var(--accent), var(--accent2));
            transition: width 0.5s ease;
            z-index: -1;
        }
        
        .tab-btn:hover::before {
            width: 100%;
        }
        
        .tab-btn.active {
            background: linear-gradient(90deg, var(--accent), var(--accent2));
            box-shadow: 0 0 15px rgba(0, 198, 255, 0.5);
        }
        
        /* Chatbot Section */
        .tab-content {
            display: none;
            animation: fadeIn 0.5s ease;
        }
        
        .tab-content.active {
            display: block;
        }
        
        .chat-container {
            background: rgba(15, 12, 41, 0.6);
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(0, 198, 255, 0.2);
        }
        
        .chat-header {
            background: rgba(48, 43, 99, 0.8);
            padding: 1.5rem;
            text-align: center;
            border-bottom: 1px solid rgba(0, 198, 255, 0.2);
        }
        
        .chat-header h2 {
            font-family: 'Orbitron', sans-serif;
            font-weight: 500;
            color: var(--accent);
        }
        
        .chat-messages {
            height: 400px;
            padding: 1.5rem;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        .message {
            max-width: 80%;
            padding: 1rem 1.5rem;
            border-radius: 20px;
            animation: fadeIn 0.3s ease;
            position: relative;
            line-height: 1.6;
        }
        
        .user-message {
            background: linear-gradient(90deg, var(--accent), #0084ff);
            align-self: flex-end;
            border-bottom-right-radius: 5px;
        }
        
        .bot-message {
            background: rgba(48, 43, 99, 0.8);
            align-self: flex-start;
            border-bottom-left-radius: 5px;
        }
        
        .chat-input {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: rgba(48, 43, 99, 0.8);
  border-top: 1px solid rgba(0, 198, 255, 0.2);
}

/* Estilos gerais */
.chat-input input {
  flex: 1;
  padding: 0.8rem 1rem;
  border-radius: 50px;
  border: none;
  background: rgba(15, 12, 41, 0.8);
  color: var(--light);
  font-family: 'Exo 2', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: box-shadow 0.2s;
}

.chat-input input:focus {
  box-shadow: 0 0 0 2px var(--accent);
}

.chat-input button {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 50px;
  color: white;
  padding: 0.8rem 1.5rem;
  margin-left: 1rem;
  cursor: pointer;
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.chat-input button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 198, 255, 0.4);
}

/* Ajustes para mobile */
@media (max-width: 600px) {
  .chat-input {
    flex-direction: column;
    padding: 0.75rem;
  }

  .chat-input input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .chat-input button {
    width: 100%;
    margin: 0.5rem 0 0 0;
    padding: 0.75rem;
    font-size: 1rem;
  }
}

        /* Generator Sections */
        .generator-container {
            background: rgba(15, 12, 41, 0.6);
            border-radius: 20px;
            padding: 2rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(0, 198, 255, 0.2);
        }
        
        .generator-header {
            text-align: center;
            margin-bottom: 2rem;
        }
        
        .generator-header h2 {
            font-family: 'Orbitron', sans-serif;
            font-weight: 500;
            color: var(--accent);
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }
        
        .prompt-input {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
        }
        
        .prompt-input input {
            flex: 1;
            padding: 1rem 1.5rem;
            border-radius: 50px;
            border: none;
            background: rgba(48, 43, 99, 0.8);
            color: var(--light);
            font-family: 'Exo 2', sans-serif;
            font-size: 1rem;
            outline: none;
        }
        
        .prompt-input input:focus {
            box-shadow: 0 0 0 2px var(--accent);
        }
        
        .generate-btn {
            background: linear-gradient(90deg, var(--accent), var(--accent2));
            border: none;
            border-radius: 50px;
            color: white;
            padding: 1rem 2.5rem;
            cursor: pointer;
            font-family: 'Exo 2', sans-serif;
            font-weight: 600;
            font-size: 1rem;
            transition: all 0.3s ease;
        }
        
        .generate-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 198, 255, 0.4);
        }
        
        .result-container {
            background: rgba(15, 12, 41, 0.8);
            border-radius: 20px;
            padding: 2rem;
            min-height: 300px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px dashed rgba(0, 198, 255, 0.3);
            position: relative;
            overflow: hidden;
        }
        
        .result-placeholder {
            text-align: center;
            color: rgba(224, 224, 255, 0.5);
        }
        
        .result-placeholder i {
            font-size: 4rem;
            margin-bottom: 1rem;
            color: rgba(0, 198, 255, 0.3);
        }
        
        .generated-content {
            max-width: 100%;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
            animation: fadeIn 0.5s ease;
        }
        
        /* Footer */
        footer {
            background: rgba(15, 12, 41, 0.9);
            padding: 3rem 5%;
            margin-top: 12.5rem;
            border-top: 1px solid rgba(0, 198, 255, 0.2);
        }
        
        .footer-content {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .footer-section {
            flex: 1;
            min-width: 250px;
        }
        
        .footer-section h3 {
            font-family: 'Orbitron', sans-serif;
            color: var(--accent);
            margin-bottom: 1.5rem;
            font-size: 1.3rem;
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 0.8rem;
        }
        
        .footer-links a {
            color: var(--light);
            text-decoration: none;
            transition: color 0.3s ease;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .footer-links a:hover {
            color: var(--accent);
        }
        
        .footer-links a i {
            width: 20px;
        }
        
        .social-icons {
            display: flex;
            gap: 1rem;
            margin-top: 1rem;
        }
        
        .social-icons a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(48, 43, 99, 0.8);
            color: var(--light);
            font-size: 1.2rem;
            transition: all 0.3s ease;
        }
        
        .social-icons a:hover {
            background: linear-gradient(90deg, var(--accent), var(--accent2));
            transform: translateY(-3px);
        }
        
        .copyright {
            text-align: center;
            padding-top: 2rem;
            margin-top: 2rem;
            border-top: 1px solid rgba(0, 198, 255, 0.2);
            color: rgba(224, 224, 255, 0.7);
        }
        
        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }
        
        .pulse {
            animation: pulse 2s infinite;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }
            
            .tabs {
                flex-direction: column;
            }
            
            .chat-messages {
                height: 300px;
            }
            
            .prompt-input {
                flex-direction: column;
            }
            
            .generate-btn {
                width: 100%;
            }
        }

        /* === Avatar + mensagem do bot === */
.message-wrapper {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

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

.message-wrapper.bot .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.message-wrapper.user .avatar {
  /* se quiser avatar pra usuário, pode ajustar aqui */
  display: none;
}

/* ajustar o balão pra não ficar colado no avatar */
.bot-message, .user-message {
  max-width: 70%;
  padding: 0.6rem 1rem;
  border-radius: 1rem;
  line-height: 1.3;
}

.bot-message {
  background: rgba(15,12,41,0.8);
  color: var(--light);
}

.user-message {
  background: rgba(0,198,255,0.2);
  color: #000;
}
