html, body {
height: 100%;
margin: 0;
}
body {
overflow-x: hidden;
}
@media (min-width: 769px) {
#maintenanceBar {
display: none !important;
}
.top-bar {
display: none !important;
}
.main-content {
margin-top: 40px !important;
}
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body, button, input, textarea, select, .main-content, .sidebar, .settings-menu, .option-text, .user-nickname, .welcome-message, .chat-messages, .message-content, .panel, .assistant-button, .sub-text, .main-text {
font-family: 'Roboto', sans-serif !important;
}
:root {
/* Cores do tema escuro (principal para mais conforto) */
--primary-color: #4285F4;
--secondary-color: #bf0000;
--background-color: #d8d4d4;
--sidebar-color: #3f5fb2;
--topbar-color: #4B6DC4;
--text-color: #d8d4d4;
--text-light: #9CA3AF;
--border-color: #7ca0fd1a;
--settings-menu:  #3f5fb2;
--assistant-button:#d8d4d4;
--fundochat: rgba (0, 0, 0, 0.0);
--assistant-button-panel-text: #d8d4d4;
--shadow: rgba(0, 0, 0, 0.3);
--hover-bg: rgba(255, 255, 255, 0.05);
/* Safe area para dispositivos com notch */
--safe-bottom: env(safe-area-inset-bottom);
}
[data-theme="claro"] {
--primary-color: #4285F4;
--secondary-color: #bf0000;
--background-color: #F9FAFB;
--sidebar-color: #5b7dd6;
--topbar-color: #3b82f6;
--text-color: #111827;
--text-light: #6B7280;
--border-color: #E5E7EB;
--assistant-button:#111827;
--fundochat: #F9FAFB;
--assistant-button-panel-text: #111827;
--settings-menu:  #7ca0fd;
--shadow: rgba(0, 0, 0, 0.1);
--hover-bg: rgba(255, 255, 255, 0.1);
}
body {
background-color: var(--background-color);
color: var(--text-color);
height: 100vh;
overflow: hidden;
transition: background-color 0.3s ease, color 0.3s ease;
position: fixed;
width: 100%;
top: 0;
left: 0;
}
#sidebarToggle {
z-index: 1001;
position: relative; 
display: flex !important;
align-items: center;
justify-content: center;
padding: 8px;
height: 40px;
width: 40px;
background: none;
border: none;
color: white;
font-size: 24px;
cursor: pointer;
}
#sidebarClose {
display: none;
}
@media (max-width: 768px) {
#sidebarToggle {
display: none !important;
}
#sidebarClose {
display: flex;
align-items: center;
justify-content: center;
background: transparent;
border: none;
color: #fff;
font-size: 22px;
cursor: pointer;
}
}
.user-profile {
display: flex;
align-items: center;
justify-content: center;
}
.user-nickname {
margin-left: 8px;
font-weight: 500;
}
.sidebar-option .user-profile {
width: 100%;
}
.settings-option .user-profile {
display: flex;
align-items: center;
}
.settings-option.logado {
cursor: pointer;
}
.sidebar-option.logado {
cursor: default;
}
#logoutButton {
color: #dc3545;
}
#logoutButton:hover {
background-color: rgba(220, 53, 69, 0.1);
}
.sidebar {
position: fixed;
overflow-x: hidden; 
left: 0;
top: 0;
width: 260px;
height: 100vh;
background-color: var(--sidebar-color);
color: var(--text-color);
display: flex;
flex-direction: column;
z-index: 10001 !important;
transition: transform 0.3s ease;
}
.sidebar.collapsed {
transform: translateX(-220px);
}
.sidebar.collapsed .sidebar-content,
.sidebar.collapsed .sidebar-home {
display: none;
}
.sidebar-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
border-bottom: none;
order: 1;
}
.sidebar-logo {
display: flex;
align-items: center;
}
.company-icon {
width: 40px;
height: 40px;
object-fit: contain;
}
.sidebar-toggle {
background: none;
border: none;
cursor: pointer;
padding: 8px;
border-radius: 15px;
transition: background-color 0.2s ease;
}
.sidebar-toggle:hover {
background: var(--hover-bg);
}
.hide-icon {
width: 30px;
height: 30px;
object-fit: contain;
filter: brightness(0) invert(1);
}
.sidebar-user-info {
padding: 20px;
order: 2;
text-align: center;
}
.user-nickname-display {
font-size: 18px;
font-weight: 600;
color: var(--text-color);
margin-bottom: 6px;
}
.user-account-type {
font-size: 12px;
color: var(--text-color);
opacity: 0.7;
}
.sidebar-separator {
height: 2px;
background-color: var(--border-color);
width: 100%;
margin: 0;
border: none;
display: block;
order: 2; 
}
.gradient-separator {
height: 1px;
background: linear-gradient(90deg, 
transparent 0%, 
var(--border-color) 20%, 
var(--border-color) 80%, 
transparent 100%);
margin: 10px 20px;
opacity: 0.6;
}
.sidebar-content {
flex: 1;
padding: 25px 20px;
order: 4; 
}
.sidebar-option {
width: 100%;
margin-bottom: 15px;
margin-top: 15px;
display: flex;
align-items: center;
padding: 12px 15px;
box-sizing: border-box;
cursor: pointer;
border-radius: 12px;
transition: all 0.2s ease;
}
.sidebar-option:hover {
background: var(--hover-bg);
}
.sidebar-home {
display: flex;
justify-content: flex-start;
align-items: center;
gap: 15px;
}
.option-icon-container {
width: 40px;
height: 40px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 15px;
flex-shrink: 0;
}
.option-icon-container i {
font-size: 25px;
color: white;
}
.option-icon {
width: 60px;
height: 60px;
object-fit: contain;
filter: brightness(0) invert(1);
}
.option-icon-image {
width: 60px;
height: 60px;
object-fit: contain;
filter: brightness(0) invert(1);
}
.social-icons-section {
padding: 20px;
border-top: 1px solid var(--border-color);
order: 5; 
}
.social-icons {
display: flex;
justify-content: center;
gap: 20px;
}
.social-icon {
width: 40px;
height: 40px;
background: rgba(255, 255, 255, 0.1);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
color: var(--text-color);
text-decoration: none;
transition: all 0.2s ease;
opacity: 0.7;
z-index: 1000; 
}
.social-icon:hover {
background: rgba(255, 255, 255, 0.2);
opacity: 1;
transform: translateY(-2px);
}
.social-icon i {
font-size: 18px;
}
.sidebar-bottom {
padding: 15px 0;
}
.hidden {
display: none !important;
}
#sidebarHome.hidden,
#settingsHomeScreen.hidden {
display: none !important;
}
#callAssistantSidebar.hidden,
#chatMessagesSidebar.hidden,
.assistant-btn-container.hidden {
display: none !important;
visibility: hidden !important;
}
.chat-area[style*="display: block"] ~ .top-bar .mobile-menu-button,
.chat-area[style*="display: block"] ~ .top-bar .sidebar-toggle {
display: none !important;
}
.sidebar.collapsed .social-icons-section {
display: none !important;
}
@media (max-width: 600px) {
.social-icon {
bottom: 80px;
}
}
.top-bar {
position: fixed;
margin-top: -40px;
left: 260px;
right: 0;
height: 80px;
display: flex;
background-color: var(--topbar-color);
justify-content: space-between;
align-items: center;
padding: 0 25px;
z-index: 9999;
transition: left 0.3s ease;
}
.top-bar-center {
position: absolute;
left: 50%;
transform: translateX(-50%);
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.top-bar-left {
position: absolute;
left: 16px;
display: flex;
align-items: center;
height: 100%;
}
.top-bar.collapsed {
left: 60px;
}
.mobile-menu-button {
display: none;
background: none;
border: none;
color: var(--text-color);
font-size: 24px;
cursor: pointer;
margin-right: 15px;
}
.settings-button {
background: none;
border: none;
cursor: pointer;
padding: 8px;
border-radius: 15px;
transition: background-color 0.2s ease;
}
.settings-button:hover {
background: var(--hover-bg);
}
.settings-icon {
width: 50px;
height: 50px;
object-fit: contain;
filter: brightness(0) invert(1);
}
.top-logo {
height: 40px;
max-width: 90vw;
object-fit: contain;
}
.settings-menu {
position: fixed;
top: 80px;
right: 20px;
background-color: var(--settings-menu);
border-radius: 12px;
box-shadow: 0 8px 25px var(--shadow);
z-index: 1001;
min-width: 250px;
overflow: hidden;
animation: slideIn 0.3s ease;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
}
#themeLabel {
font-weight: bold;
white-space: nowrap;
}
.config-option {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
font-size: 16px;
font-weight: bold;
}
.theme-switch {
position: relative;
display: inline-block;
background-color: #ccc;
border-radius: 20px;
overflow: hidden;
cursor: pointer;
padding: 5px 12px;
font-size: 14px;
color: #fff;
transition: background-color 0.3s;
}
.theme-switch input {
display: none;
}
.theme-slider {
display: inline-block;
white-space: nowrap;
transition: transform 0.3s;
font-weight: bold;
}
.theme-switch input:checked + .theme-slider {
background-color: #333;
}@keyframes slideIn {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.settings-option {
display: flex;
align-items: center;
justify-content: center;
padding: 15px 0;
cursor: pointer;
transition: background-color 0.2s ease;
gap: 12px;
}
.settings-option:hover {
background-color: var(--background-color);
}
.settings-option-icon {
width: 30px;
height: 30px;
object-fit: contain;
}
.settings-separator {
height: 1px;
background-color: var(--border-color);
margin: 0;
border: none;
}
.theme-switch {
display: flex;
align-items: center;
gap: 10px;
}
.theme-label {
font-size: 14px;
color: var(--text-light);
}
.switch-container {
position: relative;
}
.theme-checkbox {
display: none;
}
.switch-label {
display: block;
width: 50px;
height: 24px;
background-color: var(--border-color);
border-radius: 12px;
cursor: pointer;
position: relative;
transition: background-color 0.3s ease;
}
.switch-label::after {
content: '';
position: absolute;
top: 2px;
left: 2px;
width: 20px;
height: 20px;
background-color: var(--white);
border-radius: 50%;
transition: transform 0.3s ease;
}
.theme-checkbox:checked + .switch-label {
background-color: var(--primary-color);
}
.theme-checkbox:checked + .switch-label::after {
transform: translateX(26px);
}
.panel {
background: #e36226;
border-radius: 0 0 20px 20px;
padding: 0;
margin-top: 0;
box-shadow: 0 10px 30px rgba(227, 98, 38, 0.4);
opacity: 0;
max-height: 0;
overflow: hidden;
transition: all 0.4s ease;
position: relative;
z-index: 1;
margin-left: 250px;
min-width: 572px;
width: auto;
}
.panel.active {
opacity: 1;
max-height: 300px;
padding: 20px 0;
}
.panel-options {
display: flex;
flex-direction: column;
}
.option-card {
padding: 18px 30px;
border: none;
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
cursor: pointer;
display: flex;
align-items: center;
gap: 15px;
color: var(--assistant-button-panel-text);
background: transparent;
}
.option-card:last-child {
border-bottom: none;
}
.option-card:hover {
background: rgba(225, 255, 255, 0.1);
}
.option-text {
font-size: 30px;
font-weight: 500;
}
.chat-area {
position: fixed;
top: 80px;           
left: 260px;         
right: 0;            
bottom: 0;
background: #d8d4d4;    
z-index: 1000;
display: flex;
flex-direction: column;
}
.chat-area.collapsed {
left: 80px;
}
.chat-status {
padding: 20px;
text-align: center;
background: white;
border-bottom: 1px solid #ddd;
z-index: 10;
position: relative;
}
.connecting-message {
font-size: 16px;
color: #666;
font-weight: 500;
}
.disconnect-message {
font-size: 16px;
color: #d32f2f;
font-weight: 500;
}
.chat-container {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
}
.chat-container.with-timer {
margin-bottom: 170px;
}
.chat-messages {
flex: 1;
overflow-y: auto;
padding: 16px;
}
.chat-input-wrapper {
border-top: 1px solid #ddd;
padding: 10px;
background: #fff;
}
.message {
margin-bottom: 15px;
padding: 10px 15px;
border-radius: 18px;
max-width: 70%;
word-wrap: break-word;
animation: fadeIn 0.3s ease-in;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.user-message {
background: #007bff;
color: white;
margin-left: auto;
text-align: left;
border-bottom-right-radius: 5px;
}
.admin-message {
background: transparent;
color: #333;
margin-right: auto;
text-align: left;
border-bottom-left-radius: 5px;
}
.system-message {
background: #f0f0f0;
color: #666;
text-align: center;
margin: 10px auto;
font-style: italic;
border-radius: 15px;
}
.typing-indicator {
opacity: 0.7;
font-style: italic;
position: relative;
}
.typing-indicator::after {
content: '...';
animation: typing 1.5s infinite;
}
@keyframes typing {
0%, 20% { opacity: 0; }
50% { opacity: 1; }
100% { opacity: 0; }
}
.chat-input-area {
position: fixed;
bottom: 0;
left: 310px;
right: 40px;
background: transparent;     
border: none;               
padding: 0 15px 15px 15px;   
z-index: 1001;
box-shadow: none;          
display: flex;
flex-direction: column;
gap: 8px;                    
}
.chat-input-area.collapsed {
left: 90px;
}
.chat-input-container {
display: flex;
align-items: center;
gap: 10px;
background: #e36227;
border: 1px solid #e36227;
border-radius: 30px;      
padding: 12px 16px;       
max-width: 100%;
}
#chatInput {
flex: 1;
border: none;
color: #ffffff;         
caret-color: #ffffff; 
background: transparent;
outline: none;
resize: none;
font-size: 14px;
line-height: 1.4;
min-height: 20px;
max-height: 100px;
font-family: inherit;
padding: 5px 0;
}
.char-counter {
font-size: 12px;
color: #ffffff; 
caret-color: #ffffff; 
margin-right: 5px;
flex-shrink: 0;
}
.char-counter.warning {
color: #ff6b6b;
}
.send-button {
background: transparent;  
border: none;             
padding: 4px;             
color: white;
width: 35px;
height: 35px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background-color 0.2s;
flex-shrink: 0;
}
.send-button i {
font-size: 18px;
color: #ffffff; 
}
.send-button:hover {
background: #0056b3;
}
.send-button:disabled {
background: #ccc;
cursor: not-allowed;
}
.chat-timer {
position: absolute;
bottom: 85px; /* fica acima da barra */
left: 90px;
background: transparent;
border: none;
padding: 0;
margin: 0;
display: flex;
align-items: center;
justify-content: flex-start;
gap: 6px;
font-size: 13px;
color: #ff7a00;
z-index: 1002;
}
.chat-timer.collapsed {
left: 60px;
}
.chat-active-state {
position: relative;
}
.chat-timer .timer-icon {
font-size: 14px;
color: #ff7a00;
}
.back-button {
display: none;
align-items: center;
gap: 10px;
cursor: pointer;
border: none;
color: white;
font-size: 16px;
font-weight: 500;
transition: all 0.3s ease;
}
.back-button.active {
display: flex;
}
.back-icon {
width: 24px;
height: 24px;
object-fit: contain;
filter: brightness(0) invert(1);
}
.back-text {
font-size: 16px;
color: white;
}
@media (min-width: 769px) {
.back-button {
position: fixed;
top: 90px;
left: 300px;
z-index: 1500;
background-color: var(--topbar-color);
border-radius: 12px;
padding: 10px 20px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.back-button:hover {
background-color: #e36226;
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-button.collapsed {
left: 80px;
}
}
@media (max-width: 768px) {
.back-button {
position: relative;
order: -1; 
width: 100%;
margin-bottom: 15px;
padding: 12px 15px;
background-color: transparent;
border-radius: 12px;
}
.back-button:hover {
background-color: transparent;
}
.sidebar-content {
display: flex;
flex-direction: column;
}
}

.chat-messages::-webkit-scrollbar,
::-webkit-scrollbar {
width: 8px;
}
.chat-messages::-webkit-scrollbar-track,
::-webkit-scrollbar-track {
background: var(--background-color);
border-radius: 4px;
}
.chat-messages::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb {
background: var(--text-light);
border-radius: 4px;
}
.chat-messages::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:hover {
background: var(--text-color);
}

.settings-menu,
.panel,
.assistant-container,
.welcome-screen {
overflow: hidden !important;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
:focus-visible {
outline: 2px solid var(--primary-color);
outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
.send-button.listening {
width: 52.5px !important;
height: 52.5px !important;
min-width: 52.5px !important;
min-height: 52.5px !important;
max-width: 52.5px !important;
max-height: 52.5px !important;
z-index: 10;
background: #e53935 !important;
animation: pulse-mic 1s infinite;
box-shadow: 0 0 0 0 rgba(229,57,53, 0.7);
transition: width 0.2s, height 0.2s, background 0.2s;
}
@keyframes pulse-mic {
0% {
box-shadow: 0 0 0 0 rgba(229,57,53, 0.7);
transform: scale(1);
}
70% {
box-shadow: 0 0 0 10px rgba(229,57,53, 0.1);
transform: scale(1.25);
}
100% {
box-shadow: 0 0 0 0 rgba(229,57,53, 0.0);
transform: scale(1);
}
}
.send-button.listening i {
color: #fff !important;
}
.feedback-container {
position: fixed;
bottom: 0;
left: 20px;
right: 20px;
background: linear-gradient(135deg, #e36226, #ff7f50);
display: none;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 10px; 
padding: 20px 25px; 
box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
z-index: 1002;
border-radius: 16px 16px 0 0;
color: white;
font-size: 14px;
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
transform: translateY(100%);
opacity: 0;
max-width: 600px;
margin: 0 auto; 
}
.feedback-container.active {
display: flex;
transform: translateY(0);
opacity: 1;
}
.feedback-container.collapsed {
left: 90px;
}
.feedback-title {
font-size: 16px;
font-weight: 600;
margin-bottom: 4px;
text-align: center;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.stars-container {
display: flex;
gap: 6px;
margin: 4px 0 8px 0;
}
.star {
font-size: 28px;
color: rgba(255, 255, 255, 0.5);
cursor: pointer;
transition: transform 0.3s ease, color 0.3s ease, filter 0.2s;
text-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}
.star:hover {
transform: scale(1.3) rotate(5deg);
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}
.star.active {
color: #ffd700;
text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.3));
}
.feedback-textarea {
background-color: rgba(255, 255, 255, 0.2);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 8px;
padding: 10px;
resize: none;
color: white;
font-size: 13px;
width: 100%;
max-width: 350px;
height: 50px;
transition: all 0.3s ease;
box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}
.feedback-textarea::placeholder {
color: rgba(255, 255, 255, 0.7);
}
.feedback-textarea:focus {
outline: none;
background-color: rgba(255, 255, 255, 0.3);
border-color: rgba(255, 255, 255, 0.5);
box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(255, 255, 255, 0.2);
}
.feedback-buttons {
display: flex;
gap: 12px;
margin-top: 4px;
width: 100%;
max-width: 350px;
justify-content: center;
}
.feedback-btn {
background-color: white;
border: none;
color: #e36226;
font-weight: bold;
cursor: pointer;
padding: 8px 16px;
border-radius: 6px;
font-size: 13px;
transition: all 0.3s ease;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
flex: 1;
max-width: 150px;
text-transform: uppercase;
}
.feedback-btn:hover {
background-color: #ffe0d0;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.feedback-btn:active {
transform: translateY(0);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.feedback-btn:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none;
box-shadow: none;
}
.feedback-message {
font-size: 14px;
color: white;
font-weight: bold;
text-align: center;
margin-top: 10px;
height: 20px;
opacity: 0;
transition: opacity 0.3s ease;
}
.feedback-success {
position: fixed;
bottom: 0;
left: 310px;
right: 40px;
background: linear-gradient(135deg, #4CAF50, #8BC34A);
display: none;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 25px;
box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
z-index: 1002;
border-radius: 16px 16px 0 0;
color: white;
font-size: 16px;
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.feedback-success.active {
display: flex;
}
.feedback-success-icon {
font-size: 40px;
margin-bottom: 10px;
display: inline-block;
width: 40px;
height: 40px;
background-color: white;
color: #049c09;
border-radius: 50%;
line-height: 40px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.feedback-success-text {
font-weight: 600;
text-align: center;
}
.popup-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.6);
display: flex;
align-items: center;
justify-content: center;
z-index: 2000;
}
.popup-box {
position: relative;
background-color: rgba(227, 98, 39, 0.5);
color: var(--text-color);
padding: 30px;
border-radius: 16px;
box-shadow: 0 0 30px rgba(0,0,0,0.4);
text-align: center;
max-width: 400px;
width: 90%;
}
.popup-close {
position: absolute;
top: 10px;
right: 12px;
background: transparent;
border: none;
color: var(--text-color);
font-size: 24px;
cursor: pointer;
line-height: 1;
}
.popup-buttons {
display: flex;
justify-content: center;
gap: 20px;
margin-top: 20px;
}
.popup-btn {
padding: 10px 20px;
border: none;
border-radius: 8px;
cursor: pointer;
background-color: var(--primary-color);
color: white;
font-weight: bold;
transition: background 0.2s;
}
.popup-btn:hover {
background-color: #2c6fe5;
}
.btn-secundario {
background-color: transparent;
color: var(--text-color);
border: 2px solid var(--primary-color);
}
.btn-secundario:hover {
background-color: var(--hover-bg);
}
.main-content {
margin-left: 260px; 
height: 100vh;
display: flex;
flex-direction: column;
background: #d8d4d4; 
}
.sidebar.collapsed ~ .main-content,
.main-content.collapsed {
margin-left: 60px;
width: calc(100vw - 60px);
}
.assistant-container {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
margin-bottom: 60px;
}
.assistant-button {
background: #e36226;
border: none;
border-radius: 40px;
padding: 25px 50px;     
cursor: pointer;
font-weight: bold;
color: #d8d4d4;
display: flex;
align-items: center;
justify-content: flex-start; 
box-shadow: 0 4px 15px rgba(227, 98, 38, 0.3);
transition: all 0.3s ease;
position: relative;
min-width: 450px; 
max-width: 650px;
width: auto; 
z-index: 2;
gap: 20px;
}
.assistant-button:hover {
background: #d15520;
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(227, 98, 38, 0.4);
}
.assistant-button:active {
transform: translateY(0);
box-shadow: 0 2px 10px rgba(227, 98, 38, 0.3);
}
.button-icon {
flex-shrink: 0; 
display: flex;
align-items: center;
justify-content: center;
margin: 0; 
}
.chat-icon {
width: 70px; 
height: 45px; 
object-fit: contain;
display: block;
}
.button-text {
flex: 1; 
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding-right: 70px;
}
.main-text {
font-size: 26px; 
font-weight: 600;
line-height: 1.3;
font-style: normal;
font-family: 'Roboto', sans-serif;
text-align: center;
white-space: nowrap; 
}
.welcome-screen {
display: flex;
flex-direction: column;
align-items: center;
@media (max-width: 480px) and (min-height: 700px) {
.main-content {
min-height: calc(100vh - 80px);
height: calc(100vh - 80px);
justify-content: space-around;
align-items: center;
gap: 10px;
padding-top: 12px;
padding-bottom: 12px;
width: 100vw;
margin-left: 0; 
box-sizing: border-box;
}
.main-content > * {
flex: 0 0 auto;
margin: 0;
width: 100%;
max-width: 720px;
box-sizing: border-box;
}
.welcome-message { padding: 6px 12px; }
.assistant-container { padding: 6px 12px; }
.assistant-button { margin: 0 auto; width: calc(100% - 36px); max-width: 520px; }
@media (min-height: 1000px) {
.main-content { justify-content: space-evenly; }
}
}
justify-content: flex-start;
width: 100%;
text-align: center;
margin-bottom: 20px;
gap: 20px;
}
.welcome-message {
text-align: center;
width: 100%;
z-index: 1;
margin-bottom: 40px;
margin-top: 10px
}
.welcome-message h1 {
font-size: 3.5rem;
font-weight: 700;
color: #3F5FB2;
font-style: normal;
text-shadow: 0 2px 4px rgba(49, 49, 49, 0.171);
margin-bottom: 15px;
line-height: 1.2;
word-wrap: break-word;
overflow-wrap: break-word;
letter-spacing: 2px;
}
.welcome-subtitle {
font-size: 1.5rem;
font-weight: 400;
color: #3F5FB2;
font-style: normal;
opacity: 1;
margin: 0;
line-height: 1.2;
letter-spacing: 1px; 
}
@media (max-width: 1200px) {
.sidebar {
width: 220px;
}
.top-bar {
left: 220px;
}
.main-content {
margin-left: 220px;
width: calc(100vw - 220px);
}
.sidebar.collapsed ~ .main-content,
.main-content.collapsed {
margin-left: 60px;
width: calc(100vw - 60px);
}
.assistant-button {
min-width: 420px;
max-width: 600px; 
padding: 23px 45px; 
gap: 18px; 
}
.button-text {
padding-right: 65px; 
}
.chat-icon {
width: 65px; 
height: 42px; 
}
.main-text {
font-size: 24px;
}
.panel {
margin-left: 200px;
min-width: 525px;
}
.new-icon-container {
width: 100px;
height: 100px;
left: -20px;
}
.new-button-icon {
width: 50px;
height: 50px;
}
}
@media (max-width: 992px) {
.assistant-button {
min-width: 390px; 
max-width: 550px; 
padding: 21px 40px; 
gap: 16px; 
}
.chat-icon {
width: 60px; 
height: 38px; 
}
.button-text {
padding-right: 60px; 
}

.main-text {
font-size: 23px; 
}
.panel {
margin-left: 28px;
min-width: 512px;
}
.new-icon-container {
width: 100px;
height: 100px;
left: -20px;
}
.new-button-icon {
width: 50px;
height: 50px;
}
}
@media (max-width: 768px) {
html, body {
overflow: hidden !important;
position: fixed !important;
width: 100% !important;
height: 100% !important;
-webkit-overflow-scrolling: touch;
}
body {
-webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: transparent;
touch-action: none;
}
.main-content {
margin-left: 0;
width: 100vw;
padding: 15px;
margin-top: 80px;
min-height: calc(100vh - 80px);
height: calc(100vh - 80px);
justify-content: space-between;
align-items: center;
gap: 20px;
}
.welcome-screen {
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
width: 100%;
gap: 25px;
margin-bottom: 0;
flex: 0 0 auto;
}
.welcome-message {
margin-bottom: 0;
flex-shrink: 0;
text-align: center;
}
.welcome-message h1 {
font-size: 2.5rem;
font-style: normal;
margin-bottom: 15px;
word-wrap: break-word;
overflow-wrap: break-word;
color: #3F5FB2;
letter-spacing: 1.5px; 
}
.welcome-subtitle {
font-size: 1.5rem;
color: #3F5FB2;
letter-spacing: 0.8px;
}
.assistant-container {
margin-bottom: 0;
flex-shrink: 0;
width: 100%;
display: flex;
justify-content: center;
}
.assistant-button {
min-width: 350px; 
max-width: 90vw;
padding: 18px 30px; 
border-radius: 50px;
gap: 10px; 
}
.chat-icon {
width: 50px; 
height: 35px; 
}
.button-text {
padding-right: 45px; 
}
.main-text {
font-size: 21px; 
}
.chat-messages {
padding-top: 60px !important;
}
.sidebar-toggle {
display: none !important;
}
.mobile-menu-button {
display: block !important;
}
.sidebar {
transform: translateX(-100%);
width: 280px;
box-shadow: 0 0 20px rgba(0,0,0,0.3);
z-index: 2000;
}
.sidebar.active {
transform: translateX(0);
}
.chat-area[style*="display: block"] ~ .top-bar .mobile-menu-button,
.chat-area[style*="display: block"] + .top-bar .mobile-menu-button {
display: none !important;
}
.top-bar,
.main-content {
left: 0;
margin-left: 0;
overflow: hidden !important;
}
.welcome-title {
font-size: 1.8rem;
margin-bottom: 40px;
}
.sub-text {
font-size: 14px !important;
}
.new-icon-container {
width: 80px;
height: 80px;
left: -15px;
}
.new-button-icon {
width: 40px;
height: 40px;
margin-top: -20px;
margin-left: -20px;
font-size: 3.5rem;
}
.panel {
min-width: calc(100% - 40px) !important;
margin-left: 0 !important;
width: calc(100% - 2px);
}
.chat-area {
left: 0 !important;
right: 0 !important;
top: 80px !important;
overflow: hidden !important;
position: fixed !important;
height: calc(100vh - 80px) !important;
}
.chat-container {
margin: 10px 5px 110px 5px;
}
.chat-container.with-timer {
margin-bottom: 170px;
}
.chat-messages {
padding: 15px;
overflow-y: auto !important;
overflow-x: hidden !important;
-webkit-overflow-scrolling: touch;
}
.message {
max-width: 85%;
padding: 8px 12px;
font-size: 14px;
}
.chat-input-area {
left: 0 !important;
right: 0 !important;
padding: 10px;
padding-bottom: calc(12px + var(--safe-bottom));
}
.chat-input-container {
padding: 6px 12px;
}
#chatInput {
font-size: 16px;
}
.send-button {
width: 36px;
height: 36px;
}
.chat-timer {
left: 0 !important;
right: 0 !important;
bottom: calc(70px + var(--safe-bottom)) !important;
}
.back-button {
left: 20px !important;
}
.settings-menu {
right: 10px;
min-width: 200px;
}
.connecting-message {
margin-left: 190px !important;
text-align: left !important;
}
@media (min-height: 700px) {
.main-content {
justify-content: space-evenly;
gap: 30px;
padding-top: 20px;
padding-bottom: 20px;
}
.welcome-screen {
gap: 35px;
}
.welcome-message h1 {
font-size: 2.8rem;
margin-bottom: 20px;
}
.welcome-subtitle {
font-size: 1.6rem;
}
.assistant-button {
padding: 18px 30px;
min-width: 340px;
}
}
@media (min-height: 800px) {
.main-content {
justify-content: space-evenly;
gap: 40px;
padding-top: 30px;
padding-bottom: 30px;
}

.welcome-screen {
gap: 40px;
}

.welcome-message h1 {
font-size: 3rem;
margin-bottom: 25px;
}

.welcome-subtitle {
font-size: 1.7rem;
}

.assistant-button {
padding: 20px 35px;
min-width: 360px;
}
}
}
@media (max-width: 480px) {
html, body {
overflow: hidden !important;
position: fixed !important;
width: 100% !important;
height: 100% !important;
-webkit-overflow-scrolling: touch;
}
.main-content {
margin-left: 0;
width: 100vw;
padding: 15px;
margin-top: 70px;
min-height: calc(100vh - 70px);
height: calc(100vh - 70px);
justify-content: space-between;
gap: 20px;
}
.welcome-screen {
gap: 20px;
margin-bottom: 0;
}
.welcome-message {
margin-bottom: 0;
}
.welcome-message h1 {
font-size: 2rem;
font-style: normal;
margin-bottom: 12px;
word-wrap: break-word;
overflow-wrap: break-word;
color: #3F5FB2;
letter-spacing: 1.2px; 
}
.welcome-subtitle {
font-size: 1.2rem;
color: #3F5FB2;
letter-spacing: 0.6px; 
}
.assistant-button {
min-width: 310px; 
max-width: 95vw;
padding: 16px 25px; 
border-radius: 45px;
gap: 8px;
}
.chat-icon {
width: 45px; 
height: 30px; 
}
.button-text {
padding-right: 40px;
}
.main-text {
font-size: 19px; 
white-space: normal;
}
.assistant-container {
margin-bottom: 0;
padding: 0 15px;
}
.text-line {
font-size: 2rem;
}
.gif-placeholder i {
font-size: 2.5rem;
}
.gif-placeholder span {
font-size: 0.8rem;
}
body {
-webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: transparent;
touch-action: none;
}
.top-bar {
height: 70px;
}
.top-logo {
height: 30px;
}
.chat-messages {
padding-top: 60px !important;
}
.connecting-message {
margin-left: 140px !important;
}
.chat-area {
top: 70px !important;
overflow: hidden !important;
position: fixed !important;
height: calc(100vh - 70px) !important;
}
.sub-text {
font-size: 12px !important;
}
.new-icon-container {
width: 70px; 
height: 70px;
left: -10px;
}
.new-button-icon {
width: 35px;
height: 35px;
margin-left: -25px;
}
.option-card {
padding: 12px 15px;
}
.option-icon-image {
width: 40px;
height: 40px;
}
.chat-messages {
padding: 10px;
overflow-y: auto !important;
overflow-x: hidden !important;
-webkit-overflow-scrolling: touch;
}
.message {
max-width: 90%;
padding: 8px 12px;
font-size: 14px;
}
.chat-input-container {
padding: 8px;
border-radius: 20px;
}
#chatInput {
font-size: 16px;
padding: 8px 0;
}
.send-button {
width: 40px;
height: 40px;
}

.chat-timer {
font-size: 13px;
padding: 8px 10px;
bottom: calc(70px + var(--safe-bottom)) !important;
left: 1 !important;
right: 0 !important;
}
.disconnect-message {
font-size: 14px;
}
.option-text {
font-size: 20px;
font-weight: 500;
}
@media (min-height: 700px) {
.main-content {
justify-content: space-evenly;
gap: 25px;
padding-top: 15px;
padding-bottom: 15px;
}
.welcome-screen {
gap: 30px;
}
.welcome-message h1 {
font-size: 2.2rem;
margin-bottom: 18px;
}
.welcome-subtitle {
font-size: 1.3rem;
}
.assistant-button {
padding: 16px 22px;
min-width: 300px;
}
}
@media (min-height: 800px) {
.main-content {
justify-content: space-evenly;
gap: 35px;
padding-top: 20px;
padding-bottom: 20px;
}
.welcome-screen {
gap: 35px;
}
.welcome-message h1 {
font-size: 2.4rem;
margin-bottom: 20px;
}
.welcome-subtitle {
font-size: 1.4rem;
}
.assistant-button {
padding: 18px 25px;
min-width: 320px;
}
}
}
@media (max-width: 360px) {
.assistant-button {
min-width: 280px; 
padding: 14px 22px; 
gap: 6px;
}
.chat-icon {
width: 40px; 
height: 28px; 
}
.button-text {
padding-right: 35px; 
}
.main-text {
font-size: 17px; 
}
.welcome-message h1 {
letter-spacing: 1px; 
}
.welcome-subtitle {
letter-spacing: 0.5px;
}
@media (min-height: 700px) {
.main-content {
gap: 20px;
padding-top: 10px;
padding-bottom: 10px;
}
.welcome-screen {
gap: 25px;
}
.welcome-message h1 {
font-size: 2rem;
margin-bottom: 15px;
}
.welcome-subtitle {
font-size: 1.2rem;
}
.assistant-button {
padding: 14px 20px;
min-width: 280px;
}
}
}
.user-illustration {
position: absolute;
bottom: 120px;
right: 50px;
z-index: 1;
pointer-events: none;
}
.user-character {
position: relative;
width: 200px;
height: 300px;
}
.user-head {
position: absolute;
top: 0;
right: 40px;
width: 60px;
height: 60px;
background: #87CEEB;
border-radius: 50%;
border: 3px solid #fff;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.user-body {
position: absolute;
top: 50px;
right: 20px;
width: 100px;
height: 120px;
background: #fff;
border-radius: 50px 50px 0 0;
border: 3px solid #e0e0e0;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.user-phone {
position: absolute;
top: 100px;
right: 70px;
width: 20px;
height: 35px;
background: #333;
border-radius: 3px;
border: 2px solid #666;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.user-phone::before {
content: '';
position: absolute;
top: 5px;
left: 50%;
transform: translateX(-50%);
width: 12px;
height: 8px;
background: #4CAF50;
border-radius: 1px;
}
.speech-bubble {
position: absolute;
top: -20px;
right: 110px;
width: 50px;
height: 30px;
background: white;
border-radius: 15px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.speech-bubble::after {
content: '';
position: absolute;
right: -8px;
bottom: 10px;
width: 0;
height: 0;
border: 8px solid transparent;
border-left-color: white;
}
.speech-line {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 20px;
height: 2px;
background: #999;
}
.orange-gradient-bottom {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 45vh;
background: linear-gradient(180deg, 
transparent 0%, 
rgba(227, 98, 38, 0.08) 15%,
rgba(255, 140, 0, 0.12) 30%,
rgba(227, 98, 38, 0.18) 45%,
rgba(255, 140, 0, 0.25) 60%,
rgba(227, 98, 38, 0.35) 75%,
rgba(255, 120, 0, 0.45) 90%,
rgba(227, 98, 38, 0.55) 100%
);
z-index: 0;
pointer-events: none;
box-shadow: inset 0 0 100px rgba(255, 140, 0, 0.15);
}
.orange-gradient-bottom::before {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 120%;
height: 150px;
background: radial-gradient(ellipse at center bottom, 
rgba(255, 140, 0, 0.3) 0%,
rgba(227, 98, 38, 0.2) 30%,
rgba(255, 140, 0, 0.1) 60%,
transparent 100%
);
z-index: 1;
}
.sidebar.collapsed ~ .main-content .orange-gradient-bottom {
left: 60px;
}
@media (max-width: 768px) {
.orange-gradient-bottom {
height: 200px; /* Reduzido significativamente para mobile */
background: linear-gradient(180deg, 
transparent 0%, 
rgba(227, 98, 38, 0.04) 20%,
rgba(255, 140, 0, 0.08) 40%,
rgba(227, 98, 38, 0.12) 60%,
rgba(255, 140, 0, 0.18) 80%,
rgba(227, 98, 38, 0.25) 100%
);
}
.orange-gradient-bottom::before {
height: 100px;
background: radial-gradient(ellipse at center bottom, 
rgba(255, 140, 0, 0.2) 0%,
rgba(227, 98, 38, 0.15) 40%,
rgba(255, 140, 0, 0.06) 80%,
transparent 100%
);
}
}
@media (max-width: 480px) {
.orange-gradient-bottom {
height: 150px; 
background: linear-gradient(180deg, 
transparent 0%, 
rgba(227, 98, 38, 0.03) 25%,
rgba(255, 140, 0, 0.06) 50%,
rgba(227, 98, 38, 0.10) 75%,
rgba(255, 140, 0, 0.15) 100%
);
}
.orange-gradient-bottom::before {
height: 80px;
background: radial-gradient(ellipse at center bottom, 
rgba(255, 140, 0, 0.15) 0%,
rgba(227, 98, 38, 0.12) 50%,
rgba(255, 140, 0, 0.04) 100%
);
}
}
/* Ajustes específicos para telas altas em mobile */
@media (max-width: 768px) and (min-height: 700px) {
.orange-gradient-bottom {
height: 180px; /* Ligeiramente maior para telas altas */
background: linear-gradient(180deg, 
transparent 0%, 
rgba(227, 98, 38, 0.04) 20%,
rgba(255, 140, 0, 0.08) 40%,
rgba(227, 98, 38, 0.12) 60%,
rgba(255, 140, 0, 0.18) 80%,
rgba(227, 98, 38, 0.25) 100%
);
}
}
@media (max-width: 768px) and (min-height: 800px) {
.orange-gradient-bottom {
height: 160px; 
}
}
@media (max-width: 480px) and (min-height: 700px) {
.orange-gradient-bottom {
height: 130px; 
}
}
@media (max-width: 480px) and (min-height: 800px) {
.orange-gradient-bottom {
height: 120px; 
}
}


.chat-initial-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
width: 100%;
padding: 40px;
box-sizing: border-box;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.initial-message-text {
font-size: 32px;
font-weight: 500;
color: #3F5FB2;
text-align: center;
margin-bottom: 25px;
line-height: 1.4;
}
.initial-input-container {
width: 100%;
max-width: 600px;
}
.initial-input-container .chat-input-container {
background: #e36227;
border: 2px solid #e36227;
border-radius: 20px;
padding: 12px 20px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
display: flex;
align-items: center;
gap: 10px;
}
.initial-input-container #chatInputInitial {
flex: 1;
border: none;
color: #ffffff;          
caret-color: #ffffff; 
background: transparent;
outline: none;
resize: none;
font-size: 16px;
line-height: 1.4;
min-height: 24px;
max-height: 120px;
padding: 0;
}
.initial-input-container #chatInputInitial::placeholder {
color: white;
opacity: 0.7;
}
.chatInput{
color: #ffffff;          
caret-color: #ffffff; 
}
.initial-input-container .send-button {
color: white;
width: 40px;
height: 40px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background-color 0.2s;
flex-shrink: 0;
}
.initial-input-container .send-button:hover {
background: #0056b3;
}
.chat-active-state {
display: flex;
flex-direction: column;
height: 100%;
width: 100%;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
.message-rating-container {
display: flex;
gap: 8px;
margin-top: 8px;
padding-top: 8px;
justify-content: flex-start;
align-items: center;
}
.rating-btn {
background: transparent;
border: 1px solid transparent;
border-radius: 6px;
padding: 6px 12px;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
color: #666;
min-width: 36px;
height: 32px;
}
.rating-btn:hover:not(:disabled) {
background: #f5f5f5;
border-color: #999;
transform: translateY(-1px);
}
.rating-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.rating-btn.rating-positive {
color: #e36227;
opacity: 0.8;
}
.rating-btn.rating-positive:hover:not(:disabled) {
background: #b4b4b4;
}
.rating-btn.rating-negative {
color: #e36227;
opacity: 0.8;
}
.rating-btn.rating-negative:hover:not(:disabled) {
background: #b4b4b4;
}
.rating-btn.rating-report {
color: #e36227;
opacity: 0.8;
}
.rating-btn.rating-report:hover:not(:disabled) {
background: #b4b4b4;
}
.rating-btn i {
font-size: 14px;
}
.admin-message .message-rating-container {
border-top-color: rgba(0, 0, 0, 0.1);
}