/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background-color:  rgb(242, 242, 242);
    --text-color: rgb(0, 0, 0);
    --background-color2: #d1e1e7; /* Light green blue */
    --text-color2: #204e67; /* Dark green blue */
    --background-color3: #d1e1e7;
    --background-color4: white;
    --background-color5: #1f2a4b;
    --background-color6: #ec8e46;
    --background-color7:  #f7efe2;
    --menu-line: white;
    --current-conversation: rgb(242, 242, 242);
    --current-conversation-text: #204e67;
    --conversation-item-border: #ccc;
    --conversation-hover: #204e67;
    --blue-button: #007bff; /* Accent blue */
    --blue-button-hover: #0768cf; /* Darker blue */
    --text--blue-button: #007bff;
    --green-button:  #259b40; /* Accent green */
    --green-button-hover: #218838; /* Darker green */
    --white-button: rgb(242, 242, 242);
    --white-button-hover: rgb(217, 212, 212);
    --orange-button: #e3843c;
    --orange-button-hover: #c27235;
    --yes-red: #d9534f;
    --text--yes-red: #d9534f;
    --yes-red-hover: rgb(185, 67, 63);
    --no-gray: #989898;
    --no-gray-hover: #7d7d7d;
    --message-error-bg: #d76b58;
    --input-field-bg: white;
    --form-bg: #f9f9f9;
    --form-label: #333;
    --dropdown-hover: rgb(236, 236, 236);
    --delete-red: #d9534f;
    --text-color3: #989898;
    --red-button: #dd5c58;
    --red-button-hover: #c4524e;
}


@media (prefers-color-scheme: dark) {
    :root {
        --background-color:  #1f1f1e;
        --text-color: #f7efe2;
        --background-color2: #373836;
        --text-color2: #f7efe2;
        --background-color3: #374950;
        --background-color4: #2c2d2a;
        --background-color5: #132236;
        --background-color6: #935323;
        --menu-line: #1f1f1e;
        --current-conversation: #2b2b2a;
        --current-conversation-text: white;
        --conversation-hover: #222221;
        --conversation-item-border: #7f776b;
        --blue-button: #325f8d;
        --blue-button-hover: #234363;
        --text--blue-button: #6e9fc4;
        --border--blue-button: #2c537c;
        --green-button:  #477149;
        --green-button-hover: #375a39;
        --white-button: #f7efe2;
        --white-button-hover: #d2ccc1;
        --orange-button: #b16830;
        --orange-button-hover: #9d5c2a;
        --yes-red: #a84f4c;
        --text--yes-red: #c37268;
        --yes-red-hover: #853b38;
        --no-gray: #5b5b5b;
        --no-gray-hover: #4b4b4b;
        --message-error-bg: #6d3f34;
        --input-field-bg: #242423;
        --form-bg: #272726;
        --form-label: #f7efe2;
        --dropdown-hover: #343533;
        --delete-red: #c9847a;
        --text-color3: #cfc7b9;
        --red-button: #a84f4c;
        --red-button-hover: #853b38;
    }
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Pre-SimpleBar scrollbar hiding */
[data-simplebar] {
  scrollbar-width: none;         /* Firefox */
  -ms-overflow-style: none;      /* IE 10+ */
}

[data-simplebar]::-webkit-scrollbar {
  display: none;                 /* Chrome, Safari, Edge */
}

.container {
    max-width: 880px; /* Limit the width */
    margin: 0 auto; /* Center the container horizontally */
    width: 100%;
}

.main-container {
    display: flex;
    flex-direction: column;
    height: 100svh; /* Full height of the viewport */
}

.menu {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 40px; /* Adjust as needed */
    height: 40px; /* Adjust as needed */
    border-radius: 8px; /* Rounded corners */
    background-color: var(--blue-button); /* Menu background color */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer; /* Indicate it's clickable */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Add shadow for depth */
}

.menu:hover {
    background-color: var(--blue-button-hover); /* Darker shade on hover */
    transition: background-color 0.3s ease;
}

.line {
    width: 24px; /* Line width */
    height: 3px; /* Line height */
    background-color: var(--menu-line); /* Line color */
    margin: 3px 0; /* Spacing between lines */
    border-radius: 2px; /* Rounded edges for lines */
}



/* Full-Screen Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Semi-transparent black */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000; /* Below the menu icon */
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: var(--blue-button);
}

.menu-items {
    display: flex; /* Enable flexbox for the menu items */
    flex-direction: column; /* Stack the links vertically */
    align-items: center; /* Center the links horizontally */
    justify-content: center; /* Center the links vertically */
    gap: 10px; /* Optional: Add spacing between the links */
    margin: 0; /* Reset margin */
    padding: 0; /* Reset padding */
    list-style: none; /* Ensure no bullet points (if <ul> is used) */
}

/* Menu Links */
.menu-items a {
    text-decoration: none; /* Remove underline */
    color: white; /* Set the link color */
    font-size: 1.5rem; /* Adjust the font size */
    text-align: center; /* Ensure text is centered */
    padding: 10px; /* Add padding for touch targets */
    border-radius: 5px; /* Optional: Add rounded corners */
    transition: background-color 0.3s ease; /* Add hover effect */
}

.menu-items a:hover {
    color: var(--text--blue-button);
}

.menu-items a.logout:hover {
    color: var(--text--yes-red);
}

/* Dialog Container */
.alert-dialog {
    padding: 30px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Transparent black background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's above other content */
}

/* Dialog Content */
.alert-content {
    max-width: 500px;
    background-color: var(--menu-line);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#alertMessage {
    padding-bottom: 20px;
    word-wrap: break-word;
}

#closeAlertButton {
    padding: 10px;
    background-color: var(--blue-button);
    color: white;
    border: 0;
    border-radius: 10px;
    font-size: 1rem;
    transition: background-color 0.3s ease; /* Add hover effect */
    cursor: pointer;
}

#closeAlertButton:hover {
    background-color: var(--blue-button-hover);
}

#yes, #no {
    margin: 0 10px;
    padding: 10px;
    color: white;
    border: 0;
    border-radius: 10px;
    font-size: 1rem;
    transition: background-color 0.3s ease; /* Add hover effect */
    cursor: pointer;
}

#choiceMessage {
    padding-bottom: 20px;
    word-wrap: break-word;
}

#yes {
    background-color: var(--yes-red);
}

#yes:hover {
    background-color: var(--yes-red-hover);
}

#no {
    background-color: var(--no-gray);
}

#no:hover {
    background-color: var(--no-gray-hover);
}

.invite-dialog #yes {
    background-color: var(--green-button);
}

.invite-dialog #yes:hover {
    background-color: var(--green-button-hover);
}

.invite-dialog h4 {
    padding-bottom: 10px;
}




/* Visible Overlay */
.menu-overlay.visible {
    opacity: 1;
    visibility: visible;
}



/* Header and Footer Styling */
header, footer {
    padding: 0px;
    text-align: center;
    background-color: var(--background-color);
}

h1 {
    padding-top: 5px;
    user-select: none;
}

header {
    flex-shrink: 0;
}

footer {
    padding-bottom: 30px;
    flex-shrink: 0;
}

.spacer {
    flex-grow: 1;
    max-height: 100%;
}

/* Main Chat Area */
main {
    flex-grow: 1; /* Allow main content to grow and fill available space */
    display: flex;
    flex-direction: column;
}

footer {
    height: 5%; 
}

.mainBgColor {
    flex-shrink: 0; /* Prevent shrinking */
}

.secondaryColor {
    overflow-y: auto;
    flex-grow: 1; 
    max-height: 100%;
}





.chat-container {
    flex: 1; /* Chat container takes up remaining vertical space */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent overflow outside container */

}

/* Chat Messages Section */
.chat {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px;
}
.chat .simplebar-scrollbar.simplebar-visible::before {
    background-color: #555; /* Even darker gray */
}
.chat .simplebar-scrollbar::before {
    background-color: #909090; /* Light gray */
    transition: background-color 0.3s ease;
}

.chat .simplebar-scrollbar:hover .simplebar-scrollbar::before {
    background-color: #797979; /* Darker gray */
    
}

.chat .simplebar-content {
    display: flex;
    flex-direction: column;
}

.loading-wrapper {
    display: flex;
    align-items: center; /* Align items vertically */
    gap: 5px; /* Space between the GIF and the text */
}

.loading-indicator {
    width: 24px;
    height: 24px;
}

@keyframes ldio {
    0% { transform: translate(-50%,-50%) rotate(0deg); }
    100% { transform: translate(-50%,-50%) rotate(360deg); }
}
.ldio div {
    position: absolute;
    width: 70%;
    height: 70%;
    border: 2px solid #afafaf;
    border-top-color: transparent;
    border-radius: 50%;
}
.ldio div {
    animation: ldio 1s linear infinite;
    top: 50%;
    left: 50%;
}
.loadingio-spinner-rolling {
    width: 17px;
    height: 17px;
    display: inline-block;
    overflow: hidden;
    background: none;
}
.ldio {
    width: 100%;
    height: 100%;
    position: relative;
    transform: translateZ(0) scale(1);
    backface-visibility: hidden;
    transform-origin: 0 0; /* see note above */
}
.ldio div { box-sizing: content-box; }

.loading-text {
    font-size: 1rem; /* Matches the rest of the chat text */
    color: #6c757d; /* Optional: Gray color for subtlety */
    margin-top: 2px;
}


.welcomeMsg {
    position: absolute;
    max-width: 400px;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 15px;
    padding-bottom: 30px;
    gap: 20px;
    user-select: none;
}

.welcomeMsg ul {
    list-style: none;
}

.welcomeMsg li {
    padding: 5px;   ;
}




/* Individual Message Styling */
.message {
    padding: 15px;
    border-radius: 10px;
    max-width: 100%; /* Messages take up a maximum of 70% of the chat width */
    word-wrap: break-word; /* Ensures long words wrap to the next line */
}

.message.first-message {
    margin-top: 30px; 
}

.message .content p {
    white-space: pre-wrap; /* Preserves line breaks and extra spaces */
    word-wrap: break-word; /* Ensures long words are wrapped to the next line */
}

.message.user {
    align-self: flex-end; /* User messages are aligned to the right */
    background-color: var(--background-color2);
    color: var(--text-color2);
}

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

.message.bot p {
    padding: 8px 0 20px 0;
}

.message.bot table, .message.bot ul {
    margin: 0 0 10px 0;
}

.message.bot h1, .message.bot h2 {
    padding: 20px 0 10px 0;
}

.message.bot h3, .message.bot h4 { 
    padding: 20px 0 10px 0;
}

.message.bot table {
    border-collapse: collapse; /* Optional for cleaner border appearance */
}
  
.message.bot table td, .message.bot table th {
    border: 1px solid var(--text-color); /* This is for internal cell borders */
    padding: 10px;
}

.message.bot ul, .message.bot ol {
    margin: 0 0 10px 0;
    padding-left: 20px; /* Add initial padding for all <ul> */
}

.message.bot ul ul {
    margin-top: 5px;
    margin-left: 20px; /* Additional margin for nested lists */
    padding-left: 20px; /* Extra indentation for nested lists */
}

.message.bot ul ul ul {
    margin-left: 20px; /* Additional margin for nested lists */
    padding-left: 20px; /* Extra indentation for nested lists */
}

.message.bot li {
    padding-bottom: 6px;
}



.message.botLoading {
    align-self: flex-start;
    opacity: 50%;
}

.message.botError {
    align-self: flex-start;
    background-color: var(--message-error-bg);
    color: #ffffff;
    line-height: 1.5;
}

/* Time Styling */
.message .time {
    font-size: 0.8rem;
    text-align: right;
    margin-top: 5px;
    color: #6c757d;
}




/* Text Field Styling */
.textField {
    position: relative;
    padding: 0 20px;
    display: flex;
    gap: 10px;
    padding-bottom: 15px;
}

/* Scroll to Bottom Button */
.scroll-to-bottom-btn {
    position: absolute; /* Position relative to the chat container */
    top: -60px; /* Stick to bottom of visible area */
    left: 50%; /* Move it to the horizontal center */
    transform: translateX(-50%); /* Adjust it back by 50% of its width */
    margin: 0; /* Stick to right */
    background-color: var(--blue-button);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    display: none;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 8; /* Ensure button stays above scrollable content */
    transition: background-color 0.3s ease; /* Add hover effect */
}

.scroll-to-bottom-btn:hover {
    background-color: var(--blue-button-hover);
}

.show-scroll {
    display: block;
}


.inputForm {
    display: flex;
    width: 100%;
    gap: 10px;
}

.inputField {
    flex-grow: 1; /* Expand to take available space */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    resize: none; /* Prevent manual resizing by the user */
    line-height: 1.5; /* Improve readability for multi-line text */
    font-family: 'Montserrat', sans-serif;
    background-color: var(--input-field-bg);
    color: var(--text-color);
    user-select: none;
}

.sendButton {
    padding: 10px 20px;
    background-color: var(--blue-button);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    user-select: none;
}

.sendButton:hover {
    background-color: var(--blue-button-hover);
}

.sendButton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.message.bot.typing {
    opacity: 0.6; /* Subtle effect for typing indicator */
}


.historico {
    display: flex;
    justify-content: space-between; /* Distribute items with space between them */
    align-items: center; /* Align items vertically in the center */
    width: 100%; /* Adjust the width to suit your layout */
    padding: 15px;
    border: 1px solid #ccc;
    border-right: 0;
    border-left: 0;
    border-top: 0;
    user-select: none;
}

.topLeftMenu {
    position: absolute;
    left: 10px;
    top: 10px;
}

.historico p {
    font-family: 'Montserrat', sans-serif; /* Consistent font */
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color2);
}

.chevron-left, .chevron-right {
    color: var(--text-color2); /* Icon color */
    cursor: pointer; /* Makes the icon clickable */
    transition: transform 0.3s ease; /* Optional: Add hover effect */
}



.chevron-left:hover, .chevron-right:hover {
    transform: scale(1.2); /* Enlarge slightly on hover */
}

.chevron-left {
    padding-left: 20px;
    transition: transform 0.3s ease, padding 0.3s ease;
}

.chevron-left:hover {
    padding-right: 2px;
}

.chevron-right {
    background-color: var(--background-color2);
    border-radius: 10px;
    
}

#showSidebar {
    padding: 6px 10px;
    margin-right: 4px;
}

#newChatButton {
    padding: 6px 8px;
}

.savedConversations {
    position: absolute;
    display: flex;
    flex-direction: column;
    left: 0;
    height: 100svh; /* Full viewport height */
    background-color: var(--background-color2); /* Light green */
    border-right: 1px solid var(--conversation-item-border); /* Divider */
    padding: 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transform: translateX(-100%); /* Initial off-screen position */
    transition: transform 1s ease;
    z-index: 10;
    box-sizing: border-box;
}

/* [data-simplebar].savedConversations {
    position: fixed;
} */

.scrollableConversations {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.scrollableConversations .simplebar-wrapper {
    width: 250px;
 
}

.scrollableConversations::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px; /* Adjust height as needed */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
    pointer-events: none;
    opacity: 0; /* Initially hidden */
    z-index: 12;
   
}

.scrollableConversations.shadow-visible::before {
    opacity: 1; /* Show shadow when class is added */
}

.savedConversations.slide-showing {
    transform: translateX(0); /* Slide into view */
}



.conversation-item {
    position: relative;
    padding: 15px; /* Spacing between items */
    font-family: 'Montserrat', sans-serif; /* Consistent font */
    font-size: 1rem;
    border-top: 1px solid var(--conversation-item-border); /* Divider line between conversations */
    color: var(--text-color2); /* Subtle text color */
    user-select: none;
}

/* .scrollableConversations .conversation-item:first-child {
    border-top: none;
} */


.conversation-item a {
    text-decoration: none; /* Removes underline */
    color: inherit; /* Inherits parent color */
    display: block; /* Makes the link cover the entire div */
}

.conversation-item:hover {
    background-color: var(--conversation-hover);
    color: white; /* Highlight on hover */
    cursor: pointer;
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

.conversation-item.editing:hover {
    cursor: default;
    background-color: var(--background-color2);
}

.current-conversation.editing:hover {
    cursor: default;
    background-color: var(--current-conversation);
}

.current-conversation {
    /* Styles for the currently active conversation */
    background-color: var(--current-conversation); /* Example highlight */
    color: var(--current-conversation-text);
}

.newChat {
    /* border-bottom: 1px solid var(--conversation-item-border); */
    font-weight: 500;
}

.ellipsis {
    font-weight: 200;
    position: absolute;
    overflow: visible;
    right: 10px;
    top: 50%; /* Position from the middle of the container */
    transform: translateY(-50%); /* Adjust by half the element's height */
    color: white;
    display: none;
    padding: 1px 3px;
    border-radius: 5px;
    transform-origin: center; /* Ensure scaling happens around the center */
    transition: transform 0.3s ease; /* Smooth scaling effect */
}

/* Target ellipsis when parent is hovered */
.conversation-item:hover .ellipsis {
    display: block;
}



.ellipsis:hover {
    transform: translateY(-50%) scale(1.2);
    color: var(--text-color2);
    background-color: var(--background-color2);
    padding: 1px 3px;
}

.dropDownMenu {
    position: absolute;
    top: 100%; /* Position directly below the ellipsis */
    right: 100%; /* Align the dropdown with the right edge of the ellipsis */
    background-color: var(--form-bg); /* Background color */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow for better visibility *
    border-radius: 5px; /* Rounded corners */
    z-index: 1000; /* Ensure it's above other elements */
    display: none; /* Hidden by default */
    min-width: 150px; /* Ensure the dropdown has enough width */
    white-space: nowrap; /* Prevent text wrapping */
    border-radius: 15px;
}



/* Style for individual dropdown items */
.dropDownMenuItem {
    padding: 20px; /* Add spacing inside each item */
    cursor: pointer; /* Indicate clickable items */
    color: var(--form-label); /* Text color */
    text-align: left; /* Align text to the left */
}

.dropDownMenuItem:hover {
    background-color: var(--dropdown-hover); /* Highlight background on hover */
}

.icon {
    margin-right: 3px;
}

.rename {
    border-radius: 15px 15px 0 0; 
}

.conversation-item.editing .ellipsis {
    display: none;
}

.textfieldRename {
    width: 100%;
    padding: 5px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
    transition: background-color 5000s ease-in-out 0s;
    background-color: var(--input-field-bg);
    color: var(--text-color);
}

.textfieldRename:-webkit-autofill,
.textfieldRename:-webkit-autofill:hover, 
.textfieldRename:-webkit-autofill:focus, 
.textfieldRename:-webkit-autofill:active {
    -webkit-text-fill-color: var(--text-color);
}

.textfieldRename:focus {
    border-color: var(--blue-button); /* Highlight on focus */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}


.salvar-button {
    padding: 5px;
    font-size: 1rem;
    background-color: var(--blue-button);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 10px 0;
}

.salvar-button:hover {
    background-color: var(--blue-button-hover);
}


.delete {
    border-radius: 0 0 15px 15px;
    color: var(--delete-red);
}

.form-container {
    padding: 0 20px 20px 20px;
}

/* Login Container Styling */
.login {
    width: 100%;
    max-width: 400px; /* Adjust as needed */
    margin: 0 auto; /* Center horizontally */
    padding: 25px;
    border-radius: 8px;
    background-color: var(--background-color4);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Form Styling */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between elements */
}

label {
    font-size: 1rem;
    color: var(--form-label);
}

.textfield {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    background-color: var(--background-color4);
    transition: border-color 0.3s ease;
    transition: background-color 5000s ease-in-out 0s;
    color: var(--text-color);
}

.textfield:-webkit-autofill,
.textfield:-webkit-autofill:hover, 
.textfield:-webkit-autofill:focus, 
.textfield:-webkit-autofill:active {
    -webkit-text-fill-color: var(--text-color);
}

.textfield:focus {
    border-color: var(--blue-button); /* Highlight on focus */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.login-button {
    padding: 10px;
    font-size: 1rem;
    background-color: var(--blue-button);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 10px 0;
}

.login-button:hover {
    background-color: var(--blue-button-hover);
}

.create-account-button {
    padding: 10px;
    font-size: 1rem;
    background-color: var(--green-button);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 0;
    transition: background-color 0.3s ease;
}

.create-account-button:hover {
    background-color: var(--green-button-hover); /* Darker green on hover */
}

.alignCenterContainer {
    display: flex;
    justify-content: center;
}

.forgotPassword {
    display: inline-block;
    text-align: center;
    margin-top: 8px;
    margin-bottom: 2px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgotPassword:hover {
    color: var(--text--blue-button);
}

/* Create Account Button */
.createButton {
    text-align: center;
    margin-top: 25px; /* Space above the button */
}

.create-account-link {
    display: inline-block; /* Makes the link behave like a button */
    padding: 10px 20px;
    font-size: 1rem;
    background-color: var(--green-button); /* Green background */
    color: white;
    text-decoration: none; /* Removes underline */
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.create-account-link:hover {
    background-color: var(--green-button-hover); /* Darker green on hover */
}

.no-transition {
    transition: none !important;
}

.presentation {
    height: 100%;
    overflow-y: auto;
    margin-top: 10px;
}

.heroSection {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-sizing: border-box;
    padding: 0 30px;
    padding-top: 20px;
}

.heroSection .restrainedParagraph {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 200;
    padding: 20px 0 50px 0;
    max-width: 400px;
}

.fit-image {
    width: 100%;
    height: auto;
}

.invite-section {
    background-color: var(--background-color5);
    padding: 80px 40px;
    line-height: 1.5;
}

.invite-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    gap: 5%;
}

.invite-section-grid .avatar {
    border-radius: 100%;
    width: 100%;
    height: auto;
}

.invite-section-grid-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px;
    color: #f7efe2;
}

.invite-section-grid-text-description {
    font-size: 1.4rem;
    font-weight: 200;
    padding: 20px 10px 20px 10px;
    max-width: 600px;
}

.invite-section-grid-text-button {
    display: inline-block;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    color: #2f2f2d;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
    background-color: var(--white-button);
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.invite-section-grid-text-button:hover {
    background-color: var(--white-button-hover);
}

.invite-section-2 {
    padding: 80px 40px;
    line-height: 1.5;
}

.invite-section-2-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    gap: 5%;
}

.invite-section-2-grid .videocall {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    margin-bottom: 15px;
}

.invite-section-2-grid #videocall-s {
    display: none;
}

.invite-section-2-grid-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.invite-section-2-grid-text h2 {
    max-width: 500px;
}

.invite-section-2-grid-text p {
    font-weight: 400;
}

.invite-section-2-grid-text .invite-section-grid-text-description {
    text-align: left;
    font-size: 1.2rem;
}

.invite-section-grid-text-button.invite-section-grid-text-button--orange {
    background-color: var(--orange-button);
    color: white;
}

.invite-section-grid-text-button.invite-section-grid-text-button--orange:hover {
    background-color: #9d5c2a;
}

.invite-section-grid-text-description--cerebro {
    font-weight: 400;
    padding-top: 0;
}

.invite-section-grid #cerebro {
    border-radius: 20px;
    opacity: 0.7;
}

.invite-section-grid-text-description--sorriso {
    font-size: 1.7rem;
}

.invite-section-grid #sorriso {
    border-radius: 20px;
}

.orange-section {
    background-color: var(--background-color6);
    padding: 30px;
    padding-top: 40px;
    padding-bottom: 60px;
}

.orange-section h2 {
    font-size: 40px;
    font-weight: 500;
    color: white;
    padding-bottom: 30px;
    text-align: center;
}

.orange-section-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    max-width: 1200px;
    margin: 20px auto;
    gap: 30px;
    align-items: start;
}

.orange-section-grid-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.orange-section-grid-item p {
    text-align: center;
}

.orange-section h3 {
    text-align: center;
    padding: 30px 0;
}

.orange-section .invite-section-grid-text-button:hover {
    background-color: rgb(231, 226, 216);
}

.invite-section-faq-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    max-width: 1000px;
    gap: 30px;
}


.invite-section-faq-grid .faq-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    margin-bottom: 15px;
}

.invite-section-faq-grid #faq-img-s {
    display: none;
}

.invite-section-faq-grid p {
    font-size: 15px;
    padding-top: 0;
    margin-top: 0;
}

.invite-section-faq-grid .bold {
    font-weight: 600;
}

.circle-black-outline {
    width: 100px;
    height: 100px;
    border: 3px solid black;
    border-radius: 50%;
}

.gif {
    width: 85%;
    height: auto;
    max-width: 640px;
    max-height: 360px;
    border-radius: 15px; /* Adds rounded corners */
    display: block; /* Removes any inline spacing */
   

}

.videoSection {
    padding: 130px 0 60px;
    background-color: var(--background-color5);
    color: white;
}

.videoSection .restrainedParagraph {
    max-width: 450px;
}



.buttons {
    padding: 10px 20px 80px 20px;
}

.startNow, .registerButton {
    text-decoration: none;
    padding: 20px;
    border-radius: 15px;
    color: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    font-size: 1.2rem;
    cursor: pointer;
    user-select: none;
}

.registerButton {
    margin-right: 20px;
    background-color: var(--green-button);
}

.registerButton:hover {
    background-color: var(--green-button-hover);
}

.startNow {
    background-color: var(--blue-button);
}

.startNow:hover {
    background-color: var(--blue-button-hover);
}

.endSection {
    font-size: 1.3rem;
    text-align: center;
    font-weight: 200;
    padding: 60px 20px;
}

.endSection p {
    margin: 0;
    padding: 0;
}

.endSection a {
    text-decoration: none;
    color: var(--text-color);
    padding: 0 15px;
}

.contentContainer {
    align-items: center;
    justify-content: center;
    display: flex;
}

.priceTableContainer {
    display: flex;
    justify-content: center;
}

.priceTable {
    max-width: 1000px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 50px 20px 20px 20px;
    padding: 50px 70px;
    gap: 100px;
    background-color: var(--background-color4);
    border-radius: 18px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.subscription {
    display: flex;
    flex-direction: column;
    justify-content: center;    
    width: 100%;
}

.subName {
    font-size: 1.2rem;
}

.subDescription {
    color: var(--text-color3);
    font-weight: 300;
    font-size: 0.9rem;
    padding: 10px 0 30px 0;
}

.priceRow {
    display: flex;
    align-items: center;
    gap: 4px;
}

.price {
    font-weight: 600;
    font-size: 2.2rem;
}


.priceTime {
    color: var(--text-color3);
    font-size: 0.8rem;
}

.subscribe-button {
    background-color: var(--blue-button);
    transition: background-color 0.3s ease;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    margin-top: 14px;
    
}

.subscribe-button:hover {
    background-color: var(--blue-button-hover);
    cursor: pointer;
}

.recursosButton {
    margin-top: 0;
}

#success {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.formFlex {
    align-items: center;
    justify-content: center;
    margin-bottom: 75px;
}

.manageSubContainer {
    text-align: center;
    margin-bottom: 10px;
}


.manageSubscription {
    cursor: pointer;
    display: inline-block; /* Makes the link behave like a button */
    padding: 10px 20px;
    font-size: 1rem;
    color: white;
    text-decoration: none; /* Removes underline */
    border-radius: 5px;
}

.blueButton {
    background-color: var(--blue-button);
    transition: background-color 0.3s ease;
}

.blueButton:hover {
    background-color: var(--blue-button-hover);
}

.greenButton {
    background-color: var(--green-button);
    transition: background-color 0.3s ease;
}

.greenButton:hover {
    background-color: var(--green-button-hover);
}

.redButton {
    margin-top: 30px;
    background-color: var(--red-button);
    transition: background-color 0.3s ease;
    cursor: pointer;
    display: inline-block; 
    padding: 10px 20px;
    font-size: 1rem;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.redButton:hover {
    background-color: var(--red-button-hover);
}

.accountInfo {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 15px;
    margin-bottom: 15px;    
}

.infoRow {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 20px;
}

/* Style for the labels (e.g., "Email:", "Plano:") */
.infoLabel {
    font-weight: bold;
    min-width: 40px; /* Optional: Adjust for alignment */
}

/* Style for the values (e.g., userEmail, tier name) */
.infoValue {
    width: 100%;
    font-weight: normal;
    word-break: break-word; /* Break words that don't fit */
    overflow-wrap: break-word; /* Ensures long words wrap properly */
    white-space: normal; /* Allows text to wrap to the next line */
}

.accountFlex {
    align-items: center;
    justify-content: flex-start;
    margin-top: 75px;
}

.account-container {
    padding: 0 20px;
}

.account {
    width: 100%;
    max-width: 400px; /* Adjust as needed */
    margin: 0 auto; /* Center horizontally */
    padding: 20px;
    background-color: var(--background-color4);
    border-radius: 18px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.placeholder-img {
    width: 100%; /* Image scales to fit the container width */
    height: auto; /* Maintain aspect ratio */
    max-height: 60%;
    aspect-ratio: 3/2; /* Prevent the image from taking up too much vertical space */
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.materiaisContainer {
    margin-bottom: 50px;
}

.recursosTitle {
    text-align: center;
    padding: 0 20px;
    margin-top: 30px;
}

.firstTable {
    margin-top: 20px;
}

.documentTitleContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-sizing: border-box;
    padding: 0 30px;
}

.documentTitleContainer p {
    font-size: 1.7rem;
    font-weight: 200;
    padding: 20px;
    text-align: center;
}

.documentContainer {
    background-color: var(--background-color3);
    padding: 35px 20px;
    line-height: 1.5;
}

.documentSection {
    max-width: 700px;
    padding: 0px 10px 20px 10px;
    font-size: 1.2rem;
}


.documentSection .document-paragraph {
    font-weight: 200;
}

.flexWrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.flexWrap span {
    padding: 0 5px;
}

.conteudoUm {
    max-width: 400px;
}

.conteudoDois {
    max-width: 800px;
}

.lineFlex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.thin-line {
    height: 8px;
}

.spaceBetween .simplebar-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Ensure it takes full height */
}


.hidden {
    display: none; 
}




@media (max-width: 960px) {
    .invite-section-faq-grid {
        grid-template-columns: 1fr;
    }
    .invite-section-faq-grid #faq-img-xl {
        display: none;
    }

    .invite-section-grid-text-description--cerebro {
        font-size: 1.3rem;
    }


    .invite-section-grid-text-description--sorriso {
        font-size: 1.4rem;
    }

    .priceTable {
       flex-direction: column;
       background-color: transparent;
       box-shadow: none;
       margin-top: 0;
       gap: 60px;
       max-width: 440px;
    }

    /* .conteudoUm {
        max-width: none;
    }

    .conteudoDois {
        max-width: none;
    } */

    .materiaisContainer .priceTable {
        padding: 0;
        margin-top: 40px;
    }

    .materiaisContainer .firstTable {
        margin-top: 20px;
    }

    .recursosTitle {
        margin-top: 20px;
    }

    .placeholder-img {
        width: 350px;
    }
    

    .subscription {
        background-color: var(--background-color4);
        border-radius: 18px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        padding: 40px;
    }
}


@media (max-width: 768px) {


    /* #chat-scroll-container {
        margin-right: 40px;
    } */

    #newChatButton {
        display: none;
    }

    .topLeftMenu {
        top: 8px;
        left: 8px;
    }

    .menu {
        width: 35px; /* Adjust as needed */
        height: 35px; /* Adjust as needed */
    }

    .line {
        width: 20px; /* Line width */
        height: 2px; /* Line height */
        margin: 3px 0; /* Spacing between lines */
        border-radius: 2px; /* Rounded edges for lines */
    }

    .chat {
        margin-bottom: 10px;
    }

    .heroSection .restrainedParagraph {
        font-size: 1.7rem;
        padding: 20px 20px 50px 20px;
    }

    .documentTitleContainer p {
        font-size: 1.5rem;
        padding: 10px;
    }

    h1 {
        font-size: 1.5rem;
        padding-bottom: 10px;
    }
}
    


@media (max-width: 720px) {
    .invite-section-2-grid {
        grid-template-columns: 1fr;
    }

    .invite-section-2-grid #videocall-xl {
        display: none;
    }

    .invite-section-2-grid-text .invite-section-grid-text-description {
        text-align: center;
        font-size: 1.2rem;
    }
}
    


@media (max-width: 650px) {

    .buttons {
        padding-bottom: 20px;
    }

    .registerButton, .startNow {
        font-size: 15px;
        padding: 14px;
    }

    .heroSection .restrainedParagraph {
        font-size: 20px;
        padding: 10px;
        padding-bottom: 20px;
    }

    .invite-section {
        padding-top: 50px;
    }

    .invite-section-grid {
        grid-template-columns: 1fr;
    }

    /* .invite-section-grid-text {
        order: 1;
    } */

    .invite-section-grid .avatar {
        display: none;
        order: 0;
        width: 90%;
        height: auto;
        margin: 0 auto;
    }

    .invite-section-2-grid #videocall-s {
        display: block;
    }

    .invite-section-grid-text-button.invite-section-grid-text-button--orange {
        margin-bottom: 30px;
    }

    .invite-section-2-grid .invite-section-grid-text-button--orange {
        margin-bottom: 0px;
    }

    .invite-section-grid-text {
        order: 1;
    }

    .invite-section-grid #cerebro {
        order: 0;
    }

    .invite-section-grid-text-description--sorriso {
        font-size: 1.2rem;
    }

    .invite-section-2-grid {
        gap: 25px;
    }

    .orange-section h2 {
        font-size: 30px;
    }

    .orange-section-grid {
        grid-template-columns: 1fr 1fr;
        max-width: 1200px;
        margin: 20px auto;
        gap: 30px;
        align-items: start;
    }

    .invite-section-faq-grid #faq-img-s {
        display: block;
    }
}
    


@media (max-width: 570px) {

    .menu {
        right: 8px;
        top: 8px;
    }

    .placeholder-img {
        width: 80%;
    }

    .videoSection {
        padding: 80px 0 60px 0;
    }
    
    .videoSection .restrainedParagraph {
        padding: 30px 20px 10px 20px;
    }
}

@media (max-width: 504px) {
    #traco {
        visibility: hidden; 
    }

    #traco::before {
        content: "\A";
        white-space: pre; 
    }
    #traco::after {
        content: "\A"; 
        white-space: pre; 
    }
}


@media (max-width: 450px) {
    h1 {
        font-size: 1.3rem;
        padding-right: 40px;
        padding-left: 35px;
    }

  

    .buttons {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 0;
        gap: 5px;
    }

    .startNow, .registerButton {
        display: block;
        text-align: center;
        margin: 10px;
    }

    .priceTable {
        padding: 50px;
    }
}

@media (max-width: 420px) {

    .infoRow {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .infoValue {
        text-align: center;
    }


    /* .mainBgColor {
        max-height: 10%;
    }
    
    .secondaryColor {
        max-height: 90%;
    } */

}