:root {
    --primary-color: #1E1E1E;
    --secondary-color: #333333;
    --text-color: rgb(209, 213, 219);
    --background-color: #121212;
    --chat-bg-color: #18181B;
    --input-border-color: #444444;
    --hover-color: #555555;
    --shadow-color: rgba(0, 0, 0, 0.5);
}

#chatgpt-assistant-header {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 15px;
    text-align: center;
    border-radius: 8px 8px 0 0;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.2;
    box-shadow: 0 2px 4px var(--shadow-color);
}

#chatgpt-assistant-header p {
    margin: 0 0 0 5px;
    display: flex;
    align-items: center;
}

#chatgpt-assistant-messages {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: var(--chat-bg-color);
    border-radius: 8px;
    box-shadow: inset 0 2px 4px var(--shadow-color);
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) var(--background-color);
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: thin;
}

#chatgpt-assistant-messages::-webkit-scrollbar {
    width: 8px;
}

#chatgpt-assistant-messages::-webkit-scrollbar-track {
    background: var(--background-color);
    border-radius: 4px;
}

#chatgpt-assistant-messages::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
    border: 2px solid var(--background-color);
}

#chatgpt-assistant-messages::-webkit-scrollbar-thumb:hover {
    background: var(--hover-color);
}

#chatgpt-assistant-input-container {
    display: flex;
    align-items: center;
    padding: 15px;
    border-top: 1px solid var(--input-border-color);
    background-color: var(--background-color);
    box-shadow: 0 -2px 4px var(--shadow-color);
}

.bot-message {
    align-self: flex-start;
    word-wrap: break-word;
    font-size: 16px;
    padding: 8px 10px;
    border-radius: 0px 15px 15px 15px;;
    box-shadow: 0 1px 3px var(--shadow-color);
    background-color: #242529;
    color: var(--text-color);
    font-weight: 300;
    width: fit-content;
    max-width: 70%;
}

.bot-message a {
    background-color: transparent;
    text-decoration: none;
    color: #00ff0f;
    font-weight: 600;
}

.user-message {
    color: var(--text-color);
    font-weight: bold;
}

.message-bot {
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    font-size: 13px;
    font-weight: bold;
    color: #ffffff;
    gap: 4px;
}

.message-bot img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.message-user {
    display: inline-block;
    padding: 0px 3px 0px 0px;
    font-size: 13px;
    font-weight: bold;
    color: #ffffff;
}

.form-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

#chatgpt-assistant-user-info input[type="text"], input[type="email"] {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: #292929;
    color: #e0e0e0;
    font-size: 14px;
    transition: all 0.3s ease;
}

#chatgpt-assistant-user-info input[type="text"]:focus, input[type="email"]:focus {
    outline: none;
    background-color: #333333;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

#start-chat-btn {
    background-color: #3a3a3a; 
    color: #e0e0e0;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px; 
}

#start-chat-btn svg {
    width: 20px;
    height: 20px;
    stroke: #e0e0e0;
    transition: stroke 0.3s ease;
}

#start-chat-btn:hover {
    background-color: #4a4a4a;
    transform: translateY(-2px);
}

#start-chat-btn:hover svg {
    stroke: #ffffff;
}

@media screen and (max-width: 768px) {
    .bubble-form {
        width: 90%;
    }
}

#chatgpt-assistant-user-info {
    padding: 10px;
}

#close-chat-btn {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: transparent;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.3s ease;
}

#close-chat-btn:hover {
    color: #ddd;
}

.user-message-container {
    display: flex;
    flex-direction: column;
}

.user-message-container .message-header {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.user-message-container .message-user {
    font-weight: bold;
    white-space: nowrap;
}

.user-message-container .message-content {
    margin-top: 10px;
    padding: 10px;
    border-radius: 15px 0px 15px 15px;;
    font-size: 16px;
    font-weight: 300;
    color: #B1B4BB;
    background-color: #2D2E34;
    word-break: break-word;
    width: fit-content;
    align-self: flex-end;
    max-width: 70%;
}

.user-message-container .message-author {
    font-weight: bold;
    white-space: nowrap;
}

.bot-message-container .message-content {
    display: inline-block;
    padding: 8px;
    border-radius: 5px;
    font-size: 13px;
}

.chatbot-standard-wrapper {
    display: none;
}

.chatbot-container {
    display: flex;
    flex-direction: column;
    height: 100%;   
    max-height: 400px;
    background: var(--background-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px var(--shadow-color);
}

.chatbot-embed-wrapper #close-chat-btn {
    display: none;
}

.chatbot-embed-wrapper #chatgpt-assistant-header {
    text-align: center;
    padding: 10px;
}

.chatbot-embed-wrapper #chatgpt-assistant-header img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    border-radius: 50%;
}

.chatbot-embed-wrapper #chatgpt-assistant-header p {
    width: 100%;
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

.user-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    color: white;
    font-weight: bold;
    font-size: 10px;
    vertical-align: middle;
}

.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    margin-top: 10px;
}

.message-user {
    margin-right: 3px;
    font-weight: bold;
}

.chatbot-embed-wrapper {
    width: 100%;
    height: 97vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.chatbot-embed-wrapper .chatbot-container {
    width: 100%;
    height: 100%;
    max-height: none;
    display: flex;
    flex-direction: column;
}

.chatbot-embed-wrapper #chatgpt-assistant-header {
    height: 60px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-embed-wrapper #chatgpt-assistant-messages {
    flex: 1;
    height: 0;
    min-height: 0;
    overflow-y: auto;
}

.chatbot-embed-wrapper #chatgpt-assistant-input-container {
    height: 70px;
    flex: 0 0 auto;
    padding: 10px 15px;
    background: var(--background-color);
    border-top: 1px solid var(--input-border-color);
}

@media screen and (max-width: 768px) {
    .chatbot-embed-wrapper {
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
    }
}

.chat-container {
    width: 400px;
    max-width: 90%;
    background-color: #2D2D2D;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-login-button {
    display: inline-block;
    padding: 8px 16px;
    margin: 5px;
    background-color: #000000;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.chat-login-button:hover {
    background-color: #272727;
    color: white;
}

.mic-btn {
    background-color: #0e0e0e;
    border: none;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.mic-btn:hover {
    background-color: #0e0e0ec6;
}

.mic-btn:active {
    background-color: #ff0000cb;
}

.mic-btn svg {
    fill: #ffffff;
    width: 20px;
    height: 20px;
}

.mic-btn.listening {
    animation: pulse 1.1s infinite;
    color: #ff0000;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.input-container {
    display: flex;
    align-items: center;
    background-color: #1e1e1e;
    border-radius: 50px;
    padding: 5px 3px 5px 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    flex: 1;
}

#chatgpt-assistant-input-container .input-container input {
    flex: 1;
    background-color: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 16px;
    padding: 5px 10px;
}

#chatgpt-assistant-input-container .input-container .submit-btn {
    background-color: #fafafa !important;
    border: none;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

#chatgpt-assistant-input-container .input-container .submit-btn:hover {
    background-color: #fafafac6 !important;
}

#chatgpt-assistant-input-container .input-container .submit-btn:active {
    background-color: #fafafa9a !important;
}

#chatgpt-assistant-input-container .input-container .submit-btn svg{
    fill: #0e0e0e;
    width: 20px;
    height: 20px;
}

#info-chat-render {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
    font-size: 10px;
}

.bot-message-container-initial-greeting .message-bot img{
    width: 44px !important;
    height: 44px !important;
}

.wp-chat-form {
    padding: 20px;
    color: #e0e0e0;
}

.wp-chat-form .form-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--input-border-color);
    gap: 5px;
}

.wp-chat-form .form-tab {
    flex: 1;
    padding: 10px;
    cursor: pointer;
    color: #888;
    border-bottom: 2px solid transparent;
    text-align: center;
    font-size: 13px;
    transition: all 0.3s ease;
}

.wp-chat-form .form-tab:hover {
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.05);
}

.wp-chat-form .form-tab.active {
    color: #e0e0e0;
    border-bottom: 2px solid #4a90e2;
    background: rgba(74, 144, 226, 0.1);
}

.wp-chat-form .form-section {
    display: none;
}

.wp-chat-form .form-section.active {
    display: block;
}

.wp-chat-form input[type="text"],
.wp-chat-form input[type="password"],
.wp-chat-form input[type="email"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--input-border-color);
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 14px;
}

.wp-chat-form input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.wp-chat-form button {
    width: 100%;
    padding: 12px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.wp-chat-form button:hover {
    background: #357abd;
}

.wp-chat-form .form-error {
    color: #ff4444;
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
    background: rgba(255, 68, 68, 0.1);
    text-align: center;
    font-size: 13px;
}

.wp-chat-form .form-error.success {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.wp-chat-form .forgot-password {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    margin-top: 15px;
    display: inline-block;
}

.wp-chat-form .forgot-password:hover {
    color: #e0e0e0;
}

.limit-message {
    background: var(--background-color);
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.limit-message p {
    color: #ff4444;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

.wp-chat-form .limit-message {
    color: #ff4444;
    margin-bottom: 20px;
    padding: 10px;
    text-align: center;
    background: rgba(255, 68, 68, 0.1);
    border-radius: 4px;
    font-size: 14px;
}

.wp-chat-form .back-to-login {
    margin-top: 10px;
    background-color: transparent;
    border: 1px solid #4a90e2;
    color: #4a90e2;
}

.wp-chat-form .back-to-login:hover {
    background: rgba(74, 144, 226, 0.1);
}

.wp-chat-form #forgot-form .login-only {
    display: none;
}

.wp-chat-form .form-section:not(.active) {
    display: none;
}

.wp-chat-form .form-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.wp-chat-form #forgot-form {
    text-align: center;
}

.wp-chat-form #forgot-form .forgot-info {
    margin-bottom: 15px;
    color: #888;
    font-size: 14px;
}

.wp-chat-form .back