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

body {
    background: #02080a;
    width: 100%;
    margin: 0;
    font-family: "Google Sans", sans-serif;
}

header {
    display: flex;
    align-items: center; /* Alinha verticalmente */
    padding: 15px 25px;
    background: linear-gradient(to bottom, rgba(2, 8, 10, 1), transparent);
    
    h3 {
        color: #ffffff;
        padding: 7px;
        margin: 7px;
        font-size: 1.6rem;
        margin-right: auto;
        font-weight: 400;
    }

    .enter {
       width: 100px;
       height: 35px;
       border: none;
       outline: none;
       color: #ffffff;
       background: linear-gradient(135deg, #257172 0%, #6322b3 100%);
       cursor: pointer;
       position: relative;
       z-index: 0;
       border-radius: 10px;
       padding: 8px;
       margin: 17px;
       transition: all 0.4s ease-in;
    }
    

    .enter:hover {
        transform: translateY(-5px);
        color: #e6e6e6;  
        font-weight: 500;
     }

     .new-account {
       width: 100px;
       height: 35px;
       border: 1px solid #ccc;
       outline: none;
       color: #e6e6e6;
       background: #0f000000;
       cursor: pointer;
       position: relative;
       z-index: 0;
       border-radius: 10px;
       padding: 8px;
       margin: 17px;
       transition: all 0.4s ease-in;
     }

     .new-account:hover {
        background-color: #414141c7;
        color: #e7e7e7;
     }

}

.input-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: rgba(15, 15, 15, 0.8);
    padding: 10px;
    margin: 35px;
    border-radius: 12px;
    gap: 11px;
    width: 80%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(0, 251, 255, 0.2);
    backdrop-filter: blur(10px);
    max-width: 900px;
}


#file-uplouad {
    display: none;
}

.file.upload-custom {
    cursor: pointer;
    color: #ccc;
    font-size: 1.1rem;
    padding: 6px;
}

.text-input {
    flex: 1;
    min-width: 50px;
    background: transparent;
    border: none;
    color: rgb(255, 255, 255);
    padding: 10px;
    border-radius: 5px;
    outline: none;
    font-size: 1rem;
}

.send-btn {
   background-color: transparent;
   color: #62727b;
    border: none;
    padding: 11px 22px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease-in;
}

.send-btn:hover {
    color: #257172;
    border-radius: 15px;
    transform: rotate(-45deg) scale(1.2) translate(3px, -3px);
   
}


.files-button {
    background-color: transparent;
    color: #62727b;
    border: none;
    margin: 4px;
    padding: 4px;
    font-size: 1.5rem;
    transition: all 0.3s ease-in;
}

.files-button:hover {
    color: #257172;
    transform: rotate(180deg) scale(1.3); /* Gira meia volta e cresce */
    filter: drop-shadow(0 0 10px rgba(0, 251, 255, 0.4));
}

.send-btn, .files-button {
    color: #62727b;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn:active, .files-button:active {
    transform: scale(0.9);
    transition: 0.1s;
}


.search-wrapper {
  position: fixed;
  display: flex;
  justify-content: center;
  padding: 20px 0;
  width: 100%;
  bottom: 0;
  left: 0;
}

footer {
   color: rgba(255, 255, 255, 0.4);
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    z-index: 1000;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    pointer-events: none;
}

.main-list {
    background-color: transparent;
    border: none;
    color: #dbdbdb;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.main-list i {
    transform: translateY(-2px);
    cursor: pointer;
}

.sidebar {
   height: 100%;
    width: 280px;
    position: fixed;
    top: 0;
    left: -280px;
    background: rgba(17, 17, 17, 0.85); /* Efeito de vidro escuro */
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    padding: 24px 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
}

.sidebar.active {
   left: 0;
    box-shadow: 15px 0 50px rgba(0, 0, 0, 0.6);
}

.overlay {
   position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px); /* Desfoca o conteúdo atrás do menu */
    display: none;
    z-index: 1500;
    transition: opacity 0.4s ease;
}

.overlay.active {
    display: block;
}

.sidebar-nav {
    padding: 15px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.nav-item i {
    font-size: 1.1rem;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
    color: #00fbff;
    transform: translateX(6px);
}

.nav-item.active {
   background: rgba(0, 251, 255, 0.1);
    color: #00fbff;
    border: 1px solid rgba(0, 251, 255, 0.2);
}


.sidebar-divider {
   height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 20px 0;
}

.btn-close {
    position: absolute;
    background: transparent;
    border: none;
    color: #888;
    font-size: 1.6rem;
    cursor: pointer;
    transition: 0.4s;
    top: 15px;
    right: 15px;
}

.btn-close:hover {
    color: white;
}


.login-card {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #333;
    text-align: center;
    max-width: 400px;
}

.btn-socials {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-top: 25px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #444;
    background-color: #222;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s ease;
}

.social-btn:hover {
    background-color: #333;
    border-color: #666;
    transform: translateY(-2px);
}

.social-btn svg {
    flex-shrink: 0;
}

.social-btn.phone svg {
    color: #4CAF50;
}

.model-header h2 {
    color: white;
    font-size: 1.7rem;
    margin-bottom: 8px;
}

.modal-header {
    color: white;
}

.modal-header h2 {
    font-size: 2.2rem;
    text-shadow: 3px 5px 9px #333;
   margin-bottom: 8px;
}

  .modal-header p {
        font-size: 0.80rem;  
    }

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
}

.card-login {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #333;
    text-align: center;
    max-width: 500px;
}


.header-modal {
    color: white;
}

.header-modal h2 {
    font-size: 2.1rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.header-modal p {
    font-size: 0.80rem;
}

.email {
 width: 100%;
 padding: 12px;
 background: rgba(255,2555,255,0.05);
 backdrop-filter: blur(5px);
 border-radius: 12px;
 color: white;
 border: 1px solid rgba(255,255,255,0.1);
 margin: 9px;
}

.email input:placehoder {
    color: #e6e6e6;
}

.email input:focus {
background: rgba(255,255,255,0.1);
border-color: rgba(255,255,255,0.3);
}

.senha {
 width: 100%;
 padding: 12px;
 background: rgba(255,2555,255,0.05);
 backdrop-filter: blur(5px);
 border-radius: 12px;
 color: white;
 border: 1px solid rgba(255,255,255,0.1);
 margin: 9px;
}

.senha  input:placehoder {
    color: #e6e6e6;
}

.senha  input:focus {
background: rgba(255,255,255,0.1);
border-color: rgba(255,255,255,0.3);
}

.social-email, .social-senha {
    margin-bottom: 20px;
}

.btn-for {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #444;
    background-color: #e8e8e8;
    color: rgb(24, 24, 24);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s ease;
}

.btn-for:hover {
   background-color: #333;
    border-color: #666;
    transform: translateY(-2px);
    color: #e8e8e8;
}


.modal-over {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    z-index: 9999;

   opacity: 0;
   visibility: hidden;
    align-items: center;
    transition: opacity 0.5s ease visibility 0.5s ease;
}

.modal-over.open {
   opacity: 1;
   visibility: visible;
}


#welcome-screen {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    overflow: hidden;
}

.welcome-text {
    color: white;
    font-weight: 200;
    opacity: 0;
    animation: fadeIn 1s forwards;
    font-size: 1.1rem;
}

.animation-container {
    position: relative;
    width: 600px;
    height: 200px;
}


.logix-reveal {
    font-size: 60px;
    font-weight: 900;
    letter-spacing: 15px;
    fill: transparent;
    stroke: rgba(255,255,255,0.1);
    stroke-width: 1;
    animation: fillText 2s forwards;
    animation-delay: 2.5s; 
}


.shark-group {
    transform: translateX(-150px);
    animation: swim 4s ease-in-out forwards;
    animation-delay: 1s;
}

@keyframes swim {
    0% { transform: translateX(-150px) translateY(0px); opacity: 0; }
    10% { opacity: 1; }
    25% { transform: translateX(150px) translateY(-15px); }
    50% { transform: translateX(300px) translateY(15px); }
    75% { transform: translateX(450px) translateY(-15px); }
    100% { transform: translateX(800px) translateY(0px); opacity: 0; }
}

@keyframes fillText {
    to {
        fill: white;
        stroke: none;
        filter: drop-shadow(0 0 15px #00fbff);
    }
}

@keyframes fadeIn { to { opacity: 1; } }

.welcome-fade-out {
    opacity: 0;
    transition: opacity 2s ease;
    pointer-events: none;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    overflow-y: auto;
    scroll-behavior: smooth; 
}

.message-user {
    align-self: flex-end;
    background: #2f2f2f;
    color: white;
    padding: 12px 18px;
    border-radius: 18px 18px 2px 18px;
    max-width: 75%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message-user-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.message-user-attachment-img {
    max-width: 200px;
    max-height: 180px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.15);
}

.message-user-attachment-file {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    font-size: 0.85rem;
}

.message-user-attachment-file i {
    color: var(--cor-primaria, #00fbff);
}

.message-user-text {
    word-break: break-word;
}

.message-logix {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 25px;
    width: 100%;
    animation: fadeIn 0.3s ease; 
}

.logix-bubble {
    color: white;
    line-height: 1.6;
    font-size: 15px;
    white-space: pre-wrap;
    word-wrap: break-word; 
    display: inline-block;
}

.loading-container {
    display: none; 
    align-items: center; 
    gap: 10px; 
    margin: 10px 0;
}

.loading-text {
    color: white;
    font-size: 14px;
    opacity: 0.8;
}

#logix-loading span {
    animation: pulseText 1.5s infinite ease-in-out;
}

@keyframes pulseText {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}


#file-input {
    display: none;
}


.profile-circle {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}


#profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.test-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}


.profile-circle:hover .test-overlay {
    opacity: 1;
}

.profile-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.profile-modal.active {
    opacity: 1;
    visibility: visible;
}

.profile-modal.active .profile-card-content {
    transform: scale(1);
    opacity: 1;
}

.profile-card-content {
    position: relative;
    z-index: 10002;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-overlay-perfil {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 10001;
}

.typing-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.shark-icon-small {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 0 5px #00fbff);
}

.typing-bubble {
    background: #1e1e1e;
    padding: 8px 15px;
    border-radius: 15px 15px 15px 2px;
    border: 1px solid #333;
}

.dots span {
    width: 6px;
    height: 6px;
    background: #00fbff;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    animation: dots-pulse 1.4s infinite;
}

.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dots-pulse {
    0%, 100% { transform: scale(0.7); opacity: 0.4; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes fadeInOut {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}


.swim-container {
    position: relative;
    width: 48px; /* Tamanho do círculo */
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gradient-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /* Criando a borda com cores gradientes */
    border: 3px solid transparent;
    border-top-color: #00fbff;    /* Ciano */
    border-right-color: #a155ff;  /* Roxo/Violeta */
    border-bottom-color: #00fbff; /* Ciano */
    border-left-color: #a155ff;   /* Roxo/Violeta */
    
    animation: rotateRing 1.2s linear infinite;
    box-shadow: 0 0 10px rgba(0, 251, 255, 0.2); /* Brilho suave no anel */
}

/* --- TUBARÃO NADANDO --- */
.swimming-shark {
    width: 26px;
    height: 26px;
    z-index: 2;
    filter: drop-shadow(0 0 5px rgba(0, 251, 255, 0.5));
    animation: sharkSwim 2s ease-in-out infinite;
}

.thinking-text-shimmer {
    font-family: 'Google Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    background: linear-gradient(90deg, #8899a6, #ffffff, #8899a6);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerEffect 2s linear infinite;
}


@keyframes rotateRing {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes sharkSwim {
    0%, 100% { 
        transform: translateX(-3px) rotate(-8deg); 
    }
    50% { 
        transform: translateX(3px) rotate(10deg); 
    }
}

@keyframes shimmerEffect {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}


.btn-social-google {
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 10px;
}

/* --- Estilos do Perfil --- */
.profile-card-content {
    max-width: 400px;
    width: 90%;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
    width: 100%;
}

.profile-info .email {
    width: 100%;
    margin: 0;
}

.edit-profile {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.user-profile-header {
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

.user-profile-header:hover {
    transform: translateY(-2px);
}

.user-profile-header:hover img {
    box-shadow: 0 0 15px var(--cor-primaria, #00fbff);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* --- Mensagem de Boas-Vindas --- */
.welcome-message {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 30px 0;
    padding: 30px;
    animation: slideInFadeModern 2s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    animation-fill-mode: forwards;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.welcome-message.fade-out {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    pointer-events: none;
}

@keyframes slideInFadeModern {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    60% {
        transform: translateY(5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.welcome-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.shark-welcome {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 15px var(--cor-primaria, #00fbff)) drop-shadow(0 0 30px var(--cor-secundaria, #a155ff));
    animation: pulseGlowModern 2.5s ease-in-out infinite;
}

@keyframes pulseGlowModern {
    0%, 100% {
        filter: drop-shadow(0 0 15px var(--cor-primaria, #00fbff)) drop-shadow(0 0 30px var(--cor-secundaria, #a155ff));
        transform: scale(1) rotate(0deg);
    }
    25% {
        filter: drop-shadow(0 0 25px var(--cor-primaria, #00fbff)) drop-shadow(0 0 50px var(--cor-secundaria, #a155ff));
        transform: scale(1.1) rotate(-5deg);
    }
    50% {
        filter: drop-shadow(0 0 30px var(--cor-primaria, #00fbff)) drop-shadow(0 0 60px var(--cor-secundaria, #a155ff));
        transform: scale(1.15) rotate(5deg);
    }
    75% {
        filter: drop-shadow(0 0 25px var(--cor-primaria, #00fbff)) drop-shadow(0 0 50px var(--cor-secundaria, #a155ff));
        transform: scale(1.1) rotate(-3deg);
    }
}

.welcome-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.welcome-greeting {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, var(--cor-primaria, #00fbff) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInTextModern 1s ease-out 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
    letter-spacing: 1px;
    text-shadow: 0 0 30px rgba(0, 251, 255, 0.5);
}

.welcome-question {
    color: var(--cor-primaria, #00fbff);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    animation: fadeInTextModern 1s ease-out 0.7s;
    opacity: 0;
    animation-fill-mode: forwards;
    letter-spacing: 0.5px;
    text-shadow: 0 0 20px var(--cor-primaria, #00fbff);
}

@keyframes fadeInTextModern {
    0% {
        opacity: 0;
        transform: translateX(-30px) scale(0.9);
    }
    60% {
        transform: translateX(5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* --- Estilos do Histórico --- */
.historico-lista {
    max-height: 400px;
    overflow-y: auto;
    margin: 20px 0;
}

.historico-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.historico-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--cor-primaria, #00fbff);
    transform: translateX(5px);
}

.historico-titulo {
    color: white;
    font-weight: 500;
    margin-bottom: 5px;
}

.historico-data {
    color: #888;
    font-size: 0.85rem;
}

/* --- Estilos da Ajuda --- */
.ajuda-conteudo {
    margin: 20px 0;
    max-height: 400px;
    overflow-y: auto;
}

.ajuda-passo {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--cor-primaria, #00fbff);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.ajuda-passo h3 {
    color: var(--cor-primaria, #00fbff);
    font-size: 1.1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ajuda-passo p {
    color: #ccc;
    line-height: 1.6;
    margin: 0;
}

/* --- Estilos das Configurações --- */
.config-opcoes {
    margin: 20px 0;
}

.config-item {
    margin-bottom: 25px;
}

.config-item label {
    display: block;
    color: white;
    font-weight: 500;
    margin-bottom: 12px;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background: linear-gradient(135deg, var(--cor-primaria, #00fbff), var(--cor-secundaria, #a155ff));
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.theme-colors {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.theme-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    transform: scale(1.1);
    border-color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.theme-btn.active {
    border-color: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

/* --- Tema Claro (compatível com todas as cores do tema) --- */
body.tema-claro {
    background: #f0f2f5;
    --texto-principal: #1a1a1a;
    --texto-secundario: #4a4a4a;
    --texto-muted: #666;
    --fundo-card: #ffffff;
    --fundo-input: rgba(0, 0, 0, 0.04);
    --borda-input: rgba(0, 0, 0, 0.12);
    --fundo-sidebar: rgba(255, 255, 255, 0.98);
    --fundo-mensagem-user: #e8eaed;
    --sombra-clara: 0 1px 3px rgba(0,0,0,0.08);
}

body.tema-claro,
body.tema-claro * {
    font-family: "Google Sans", "Segoe UI", system-ui, sans-serif;
}

body.tema-claro header {
    background: linear-gradient(to bottom, var(--fundo-card, #fff), transparent);
}

body.tema-claro header h3 {
    color: var(--texto-principal);
}

body.tema-claro .enter {
    color: #fff !important;
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria)) !important;
}

body.tema-claro .new-account {
    color: var(--texto-principal);
    border-color: var(--borda-input);
    background: transparent;
}

body.tema-claro .new-account:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--texto-principal);
}

body.tema-claro .input-container {
    background: var(--fundo-card);
    border: 1px solid var(--borda-input);
    border-top-color: var(--cor-primaria);
    box-shadow: var(--sombra-clara);
}

body.tema-claro .text-input {
    color: var(--texto-principal);
}

body.tema-claro .text-input::placeholder {
    color: var(--texto-muted);
}

body.tema-claro .send-btn,
body.tema-claro .files-button {
    color: var(--texto-muted);
}

body.tema-claro .send-btn:hover,
body.tema-claro .files-button:hover {
    color: var(--cor-primaria);
}

body.tema-claro .message-user {
    background: var(--fundo-mensagem-user);
    color: var(--texto-principal);
}

body.tema-claro .message-user-attachment-img {
    border-color: var(--borda-input);
}

body.tema-claro .message-user-attachment-file {
    background: rgba(0, 0, 0, 0.08);
    color: var(--texto-principal);
}

body.tema-claro .message-logix .logix-bubble {
    color: var(--texto-principal);
}

body.tema-claro .login-card,
body.tema-claro .card-login,
body.tema-claro .profile-card-content {
    background-color: var(--fundo-card);
    border: 1px solid var(--borda-input);
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

body.tema-claro .modal-header h2,
body.tema-claro .header-modal h2 {
    color: var(--texto-principal);
}

body.tema-claro .modal-header p,
body.tema-claro .header-modal p {
    color: var(--texto-secundario);
}

body.tema-claro .email,
body.tema-claro .senha {
    background: var(--fundo-input);
    border: 1px solid var(--borda-input);
    color: var(--texto-principal);
}

body.tema-claro .email::placeholder,
body.tema-claro .senha::placeholder {
    color: var(--texto-muted);
}

body.tema-claro .btn-for {
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria));
    color: #fff;
    border: none;
}

body.tema-claro .btn-for:hover {
    opacity: 0.9;
    color: #fff;
    transform: translateY(-2px);
}

body.tema-claro .sidebar {
    background: var(--fundo-sidebar);
    border-right: 1px solid var(--borda-input);
}

body.tema-claro .nav-item {
    color: var(--texto-principal);
}

body.tema-claro .nav-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--cor-primaria);
}

body.tema-claro .nav-item.active {
    background: rgba(var(--cor-primaria-rgb, 0, 251, 255), 0.12);
    color: var(--cor-primaria);
    border-color: rgba(var(--cor-primaria-rgb, 0, 251, 255), 0.25);
}

body.tema-claro .main-list {
    color: var(--texto-principal);
}

body.tema-claro .historico-item {
    background: var(--fundo-input);
    border: 1px solid var(--borda-input);
}

body.tema-claro .historico-item:hover {
    border-color: var(--cor-primaria);
}

body.tema-claro .historico-titulo {
    color: var(--texto-principal);
}

body.tema-claro .historico-data {
    color: var(--texto-muted);
}

body.tema-claro .config-item label {
    color: var(--texto-principal);
}

body.tema-claro .toggle-container {
    color: var(--texto-principal);
}

body.tema-claro .slider {
    background-color: #ccc;
}

body.tema-claro .ajuda-passo {
    background: var(--fundo-input);
    border-left-color: var(--cor-primaria);
}

body.tema-claro .ajuda-passo h3 {
    color: var(--cor-primaria);
}

body.tema-claro .ajuda-passo p {
    color: var(--texto-secundario);
}

body.tema-claro .typing-bubble {
    background: var(--fundo-mensagem-user);
    border-color: var(--borda-input);
}

body.tema-claro .thinking-text-shimmer {
    color: var(--texto-principal);
}

body.tema-claro .welcome-greeting,
body.tema-claro .welcome-question {
    -webkit-text-fill-color: initial;
    color: var(--texto-principal);
}

body.tema-claro .welcome-question {
    color: var(--cor-primaria);
}

body.tema-claro footer {
    color: var(--texto-muted);
}

body.tema-claro .user-profile-header p,
body.tema-claro .user-profile-header span {
    color: var(--texto-principal);
}

body.tema-claro .attachments-preview {
    background: var(--fundo-input);
    border: 1px solid var(--borda-input);
}

body.tema-claro .attachment-chip {
    background: var(--fundo-mensagem-user);
    color: var(--texto-principal);
    border-color: var(--borda-input);
}

/* --- Variáveis CSS para Temas de Cores --- */
:root {
    --cor-primaria: #00fbff;
    --cor-secundaria: #a155ff;
}

[data-tema="purple"] {
    --cor-primaria: #a155ff;
    --cor-secundaria: #ff00ff;
}

[data-tema="green"] {
    --cor-primaria: #00ff88;
    --cor-secundaria: #00fbff;
}

[data-tema="orange"] {
    --cor-primaria: #ff6b00;
    --cor-secundaria: #ff00ff;
}

[data-tema="blue"] {
    --cor-primaria: #0066ff;
    --cor-secundaria: #00fbff;
}

header .enter {
    background: transparent;
}

.nav-item.active {
    background: rgba(var(--cor-primaria-rgb, 0, 251, 255), 0.1);
    color: var(--cor-primaria);
    border-color: rgba(var(--cor-primaria-rgb, 0, 251, 255), 0.2);
}

.nav-item:hover {
    color: var(--cor-primaria);
}

.historico-item:hover {
    border-color: var(--cor-primaria);
}

.ajuda-passo {
    border-left-color: var(--cor-primaria);
}

.ajuda-passo h3 {
    color: var(--cor-primaria);
}

input:checked + .slider {
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria));
}

/* --- Anexos (preview) --- */
.attachments-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    min-height: 0;
    max-height: 80px;
    overflow-y: auto;
    width: 100%;
    order: -1;
}

.attachments-preview:empty {
    display: none;
}

.attachment-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #ccc;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-chip i {
    flex-shrink: 0;
    color: var(--cor-primaria);
}

.attachment-chip .remove-attachment {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 0 4px;
    font-size: 1rem;
    line-height: 1;
}

.attachment-chip .remove-attachment:hover {
    color: #ff6b6b;
}

/* --- Botão enviar: ícone muda para ampulheta ao enviar --- */
.send-btn.sending {
    pointer-events: none;
}

.send-btn.sending i {
    animation: hourglassPulse 1.2s ease-in-out infinite;
}

@keyframes hourglassPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.15); }
}

/* --- Histórico: botão excluir --- */
.historico-item-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.historico-item {
    flex: 1;
}

.btn-excluir-chat {
    flex-shrink: 0;
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #dc3545;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-excluir-chat:hover {
    background: rgba(220, 53, 69, 0.4);
}

body.tema-claro .btn-excluir-chat {
    color: #c82333;
    border-color: #dc3545;
}

body.tema-claro .btn-excluir-chat:hover {
    background: rgba(220, 53, 69, 0.15);
}