:root {
    --primary-color: #764979;
    --dark-purple: #3d263f;
    --primary-light: #524752;
    --secondary-color: #f8f9fa;
}

       body {
            background: linear-gradient(135deg, var(--dark-purple), #2c1d2d);
            font-family: 'Poppins', sans-serif;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100vh;
            margin: 0;
            overflow: hidden;
        }

        .chat-container {
            width: 100%;
            max-width: 600px;
            height: 85vh;
            max-height: 600px;
            display: flex;
            flex-direction: column;
            background-color: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.18);
            border-radius: 15px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
            backdrop-filter: blur(10px);
        }

        .chat-header {
            color: #f0e6f2;
            padding: 1rem;
            text-align: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        }

        .chat-header h4 {
            margin: 0;
            font-weight: bold;
        }

        .chat-messages {
            flex-grow: 1;
            padding: 1.25rem;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 12px;
            scroll-behavior: smooth;
        }

        /* Scrollbar místico (Webkit) */
        #chat-messages::-webkit-scrollbar {
            width: 8px;
        }
        #chat-messages::-webkit-scrollbar-thumb {
            background-color: #9966A0; /* Cor da barra de rolagem */
            border-radius: 4px;
        }
        #chat-messages::-webkit-scrollbar-track {
            background: #4A2A4D;
        }

        .message {
            display: flex;
            flex-direction: column;
            max-width: 80%;
        }

        .message-bubble {
            padding: 10px 15px;
            border-radius: 18px;
            line-height: 1.4;
            word-wrap: break-word;
        }

        .bot-message {
            align-self: flex-start;
        }

        .bot-message .message-bubble {
            background-color: #9966A0;
            color: #F0E5F2;
            border-bottom-left-radius: 4px;
        }

        .user-message {
            align-self: flex-end;
        }

        .user-message .message-bubble {
            background-color: #D6C5D9;
            color: #4A2A4D;
            border-bottom-right-radius: 4px;
        }
        
        .typing-indicator {
            display: flex;
            align-items: center;
            padding: 10px 15px;
            background-color: #9b59b6;
            border-radius: 18px;
            border-bottom-left-radius: 4px;
            width: fit-content;
        }

        .dot {
            width: 8px; height: 8px; margin: 0 2px;
            background-color: rgba(255, 255, 255, 0.7);
            border-radius: 50%; display: inline-block;
            animation: dot-flashing 1.4s infinite linear alternate;
        }
        
        .dot:nth-child(2) { animation-delay: 0.2s; }
        .dot:nth-child(3) { animation-delay: 0.4s; }

        @keyframes dot-flashing {
            0% { opacity: 0.2; }
            50% { opacity: 1; }
            100% { opacity: 0.2; }
        }

        .input-container {
            display: flex;
            padding: 10px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            
        }

        #userInput {
            flex-grow: 1;
            border-radius: 20px;
            border: 1px solid #5a3e5e;
            padding: 10px 15px;
            background-color: rgba(255, 255, 255, 0.9);
            color: #333;
        }

        #sendButton {
            margin-left: 10px;
            background-color: #8e44ad;
            border-color: #8e44ad;
        }
        #sendButton:hover {
            background-color: #9b59b6;
            border-color: #9b59b6;
        }

        /* Tooltip style for info/help */
        .info-tooltip {
            background-color: #9966A0;
            color: #F0E5F2;
            padding: 0.5rem;
            border-radius: 0.5rem;
            position: absolute;
            top: -2.5rem;
            left: 50%;
            transform: translateX(-50%);
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }
        .info-icon:hover .info-tooltip {
            opacity: 1;
        }

        .info-icon{
            position: absolute;
            top: 0;
            right: 0;
        }

        /* Estilos dos campos OTP (Validação) */
        .otp-input {
            width: 45px !important;
            height: 50px !important;
            text-align: center;
            font-size: 1.5rem;
            border: 2px solid #ced4da;
            border-radius: 0.25rem;
            transition: border-color 0.3s, box-shadow 0.3s;
        }
        .otp-input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.2rem rgba(44, 29, 45, 0.25);
        }
        /* Oculta as setas em inputs number */
        .otp-input::-webkit-outer-spin-button,
        .otp-input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        .otp-input[type=number] {
            -moz-appearance: textfield;
        }
        
        /* Botões customizados com a cor primária */
        #sendButton, #otpSubmitButton {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
            color: white;
            font-weight: 600;
        }

        #sendButton:hover, #otpSubmitButton:hover {
            background-color: var(--primary-light);
            border-color: var(--primary-light);
        }
        
        #sendButton:disabled, #otpSubmitButton:disabled {
            background-color: #adb5bd;
            border-color: #adb5bd;
        }

        .auth-links {
            text-align: center;
            margin-top: 20px;
        }

        .auth-links a {
            color: #ccc;
            font-size: 0.9rem;
            text-decoration: none;
            transition: color 0.3s;
        }

        .auth-links a:hover {
            color: #fff;
        }