:root {
    --mobile-bg-color: #f4f5f9;
    --card-bg-color: #ffffff;
    --primary-text-color: #2c3e50;
    --secondary-text-color: #8a94a6;
    --accent-color: #8e44ad;
    --light-accent-color: #f3e5f5;
    --separator-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.05);
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: transparent !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.logo {
    font-size: 1.5rem;
    color: var(--primary-text-color);
    font-weight: bold;
}
.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.4rem;
    color: var(--secondary-text-color);
}
.hamburger-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-text-color);
    padding: 0;
}
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
.mobile-menu {
    position: fixed;
    top: 0;
    left: -80%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: white;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    z-index: 2000;
    padding: 20px;
    transition: left 0.3s ease-in-out;
}
.mobile-menu.active {
    left: 0;
}
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--separator-color);
    margin-bottom: 15px;
}
.mobile-menu-header .logo { font-size: 1.2rem; }
.close-menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-text-color);
}
.mobile-menu-links a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: var(--primary-text-color);
    font-weight: 500;
}
.main-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 20px 110px 20px;
}
.mobile-nav {
    position: fixed;
    bottom: 0px;
    left: 0px;
    right: 0px;
    background-color: var(--card-bg-color);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1000;
}
.nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--secondary-text-color); font-size: 0.75rem; gap: 4px; }
.nav-item i { font-size: 1.4rem; }
.nav-item:hover {
    background-image: linear-gradient(to right, #8f10c5ff, #000cb9ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.nav-item.active { color: var(--accent-color); }
.nav-item.active i { background: linear-gradient(to right, #8f10c5ff, #000cb9ff); color: white; border-radius: 12px; padding: 8px; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; margin-bottom: -12px; transform: translateY(-20px); box-shadow: 0 4px 10px rgba(142, 68, 173, 0.4); transition: transform 0.3s ease; }
.nav-item.active span { display: none; }
.desktop-nav { display: none; }
.main-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 1010;
}

.main-top-nav .hamburger-btn,
.main-top-nav .search-icon {
    font-size: 1.4rem;
    color: var(--secondary-text-color);
    text-decoration: none;
    background: none;
    border: none;
    padding: 5px;
}
.main-top-nav .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.desktop-nav {
    display: flex;
    background: white;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    align-items: center;
    justify-content: space-between;
}
.desktop-nav .hamburger-btn,
.desktop-nav .search-icon {
    font-size: 1.4rem;
    color: var(--secondary-text-color);
    text-decoration: none;
    background: none;
    border: none;
}
.desktop-nav .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.content-container {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 1rem;
}
.page-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1010;
}
.page-header .back-button {
    font-size: 1.5rem;
    color: #333;
    text-decoration: none;
    margin-right: 15px;
}
.page-header .page-title {
    flex-grow: 1;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding-right: 40px; 
}
.main-top-nav .navbar-brand img {
    max-height: 58px;
    width: auto;
    display: block;
}
.mobile-menu-links .sub-link {
    background: linear-gradient(to right, rgba(143, 16, 197, 0.9), rgba(0, 12, 185, 0.5));
    color: #ffffff;
    padding-left: 20px;
    font-size: 0.9rem;
    font-weight: 400;
}
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2010;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-modal {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -70%);
    z-index: 2011;
    width: 90%;
    max-width: 500px;
    background-color: var(--card-bg-color);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(142, 68, 173, 0.2), 0 0 0 1px rgba(0,0,0,0.05);
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.close-search-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: var(--card-bg-color);
    border: 1px solid var(--separator-color);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
    color: var(--secondary-text-color);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.search-form {
    display: flex;
    align-items: center;
    padding: 10px;
}

.search-form-icon {
    font-size: 1.2rem;
    color: var(--secondary-text-color);
    margin: 0 10px;
}

.search-input {
    flex-grow: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 1.2rem;
    padding: 10px 0;
    color: var(--primary-text-color);
}



body.body-background {
    background-color: #F8F9FB;
    font-family: 'Inter', sans-serif;
}

.search-header .input-group {
    max-width: 500px;
    margin: 20px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-header .form-control {
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    background-color: #FFFFFF;
    border-radius: 15px 0 0 15px;
}

.search-header .form-control:focus {
    box-shadow: none;
    outline: none;
}

.search-header .btn-primary {
    background-color: #FFFFFF;
    border: none;
    color: var(--secondary-text-color);
    padding: 15px 15px;
    border-radius: 0 15px 15px 0;
}
.search-results-title {
    font-size: 0.75rem;
    font-weight: 300;
    margin-bottom: 25px;
    text-align: center;
    color: var(--secondary-text-color);
    border-bottom: none;
    padding-bottom: 0;
}
.search-results-title strong.gradient-text {
    font-weight: 700;
    background: linear-gradient(to right, #9146FF, #007BFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #9146FF;
    display: inline;
}

.text-muted {
    text-align: center;
    margin-bottom: 25px;
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.user-list-item {
    display: flex;
    align-items: center;
    background-color: #FFFFFF;
    padding: 18px 20px;
    border-radius: 15px;
    text-decoration: none;
    color: var(--primary-text-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
}

.user-list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    color: var(--primary-text-color);
}

.user-list-item .user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 1px solid #E0E0E0;
}

.user-list-item .user-display-name {
    font-weight: 600;
    font-size: 1.05rem;
}

.user-list-item .user-username {
    font-size: 0.9rem;
    color: #8C8C8C;
}

.user-list-item .fa-chevron-right {
    color: #D0D0D0;
    opacity: 1;
    font-size: 1.1rem;
}

#load-more-btn {
    background-color: #FFFFFF;
    color: var(--primary-text-color);
    border: 1px solid #E0E0E0;
    border-radius: 50px;
    padding: 12px 25px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 200px;
    margin: 20px auto;
}

#load-more-btn:hover {
    background-color: #F0F0F0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.search-only-nav {
    padding: 10px 15px;
    background-color: var(--card-bg-color, #ffffff);
    border-bottom: 1px solid var(--separator-color, #e0e0e0);
    position: sticky;
    top: 0;
    z-index: 1010;
}
.search-only-nav .form-control {
    border: none !important;
    background: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 1.1rem;
    padding: 10px;
    color: var(--primary-text-color);
}

.search-only-nav .input-group {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--card-bg-color, #ffffff);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(142, 68, 173, 0.1);
    border: 1px solid var(--separator-color, #e0e0e0);
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.search-only-nav .btn-primary {
    background-color: transparent;
    border: none;
    color: var(--accent-color, #8e44ad);
    font-size: 1.2rem;
    padding: 10px;
    border-radius: 12px;
}
.nav-icons-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.menu-divider {
    margin: 10px 0;
    border: none;
    border-top: 1px solid var(--separator-color);
}
.mobile-menu-links {
    overflow-y: auto;
    height: calc(100vh - 70px);
    padding-bottom: 50px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-menu-links::-webkit-scrollbar {
    display: none;
}
#assistant-fab,
#chat-widget {
    z-index: 1050;
}

/* --- ESTILOS COMPLETOS DO ASSISTENTE --- */
:root {
    --assistant-primary: #7c3aed; --assistant-primary-hover: #6d28d9; --assistant-bg: #1e293b;
    --assistant-header: #334155; --assistant-text-primary: #f8fafc; --assistant-text-secondary: #cbd5e1;
    --user-bubble-bg: #3b82f6; --bot-bubble-bg: #475569; --input-bg: #334155;
}
#assistant-fab, #chat-widget { z-index: 1050; }
#assistant-fab {
    position: fixed; bottom: 25px; right: 25px; width: 60px; height: 60px;
    background: linear-gradient(45deg, var(--assistant-primary), #a855f7);
    color: white; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
}
#assistant-fab:hover { transform: scale(1.1); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); }
#assistant-fab.hidden { transform: scale(0); }
#chat-widget {
    position: fixed; bottom: 100px; right: 25px; width: 370px; max-width: 90vw;
    height: 600px; max-height: 75vh; background-color: var(--assistant-bg);
    border-radius: 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); display: flex;
    flex-direction: column; overflow: hidden; transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 1; transform: translateY(0);
}
#chat-widget.hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
#chat-header {
    background-color: var(--assistant-header); padding: 1rem; color: var(--assistant-text-primary);
    font-weight: bold; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0;
}
#close-chat-btn {
    background: none; border: none; color: var(--assistant-text-secondary); font-size: 1.5rem;
    line-height: 1; cursor: pointer; transition: color 0.2s;
}
#close-chat-btn:hover { color: var(--assistant-text-primary); }
#chat-body {
    flex-grow: 1; padding: 1rem; overflow-y: auto; display: flex;
    flex-direction: column; gap: 0.75rem;
}
.message {
    padding: 0.75rem 1rem; border-radius: 12px; max-width: 80%;
    color: var(--assistant-text-primary); line-height: 1.5; word-wrap: break-word;
}
.message.bot { background-color: var(--bot-bubble-bg); align-self: flex-start; border-bottom-left-radius: 4px; }
.message.user { background-color: var(--user-bubble-bg); align-self: flex-end; border-bottom-right-radius: 4px; }
#chat-form { display: flex; padding: 1rem; gap: 0.5rem; border-top: 1px solid var(--assistant-header); flex-shrink: 0; }
#chat-input {
    flex-grow: 1; background-color: var(--input-bg); border: 1px solid var(--bot-bubble-bg);
    border-radius: 8px; padding: 0.75rem; color: var(--assistant-text-primary); font-size: 1rem; transition: border-color 0.2s;
}
#chat-input:focus { outline: none; border-color: var(--assistant-primary); }
#send-btn {
    background-color: var(--assistant-primary); border: none; border-radius: 8px; color: white;
    width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background-color 0.2s;
}
#send-btn:hover { background-color: var(--assistant-primary-hover); }
/* Garante que a regra completa para o botão flutuante esteja correta */
#assistant-fab {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--assistant-primary), #a855f7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
    z-index: 1050; /* Garante que ele fique na frente */
}

/* Estilos para o texto 'IA' dentro do botão */
#assistant-fab span {
    font-size: 1.5rem; /* Tamanho da fonte */
    font-weight: 700;  /* Deixa a fonte mais grossa (bold) */
    line-height: 1;    /* Ajuda no alinhamento vertical */
    user-select: none; /* Impede que o texto seja selecionado ao clicar */
}
