/* Estilos gerais do corpo */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

input:focus, button:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

#botao-login {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

#botao-login:focus, #botao-login:active, #botao-login:hover {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #b3b3b3;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    padding: 2rem 1.5rem;
    background: linear-gradient(180deg, #001514 0%, #033B4A 100%);
    overflow-y: auto;
    height: 100vh;
    box-shadow: 4px 0px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s;
}

/* Conteúdo principal */
.content {
    margin-left: 280px;
    margin-right: 0;
    padding: 2rem 2.5rem;
    background-color: #f9f9f9;
    min-height: 100vh;
    transition: all 0.3s;
}

/* Cartões/Cards */
.dashboard-card {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: none;
    background-color: white;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #001514;
    font-size: 1.1rem;
}

.card-body {
    padding: 1.5rem;
}

/* Botões */
.dash-button {
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

/* Links de navegação */
.nav-link {
    color: white !important;
    background-color: transparent !important;
    border: none !important;
    font-size: 14px !important;
    text-align: center !important;
    display: block !important;
    font-weight: 300 !important; /* Fonte mais fina para links não selecionados */
    margin-bottom: 15px !important;
}

.nav-link.active {
    color: #FF730E !important;
    background-color: transparent !important;
    font-size: 14px !important;
    text-align: center !important;
    display: block !important;
    font-weight: 500 !important; /* Destaque para o link selecionado */
    margin-bottom: 15px !important;
}

/* Inputs personalizados */
.dash-input {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.dash-input:focus {
    border-color: #0077B6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.2);
    outline: none;
}

/* Tabelas de dados */
.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner th {
    font-weight: 600;
    color: #333;
    background-color: #f5f5f5;
    text-align: left;
    padding: 12px 10px;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner td {
    padding: 10px;
    font-size: 0.9rem;
}

/* Estilos para tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Animação de carregamento */
.loading-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0077B6;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos de título */
.dashboard-title {
    color: #001514;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #FF730e;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.section-title {
    font-weight: 600;
    color: #0077B6;
    margin-bottom: 1rem;
}

/* Cartões de métricas */
.metric-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-tile {
    background: white;
    border-radius: 12px;
    padding: 1.2rem;
    flex: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    border-left: 4px solid #0077B6;
}

.metric-tile:hover {
    transform: translateY(-5px);
}

.metric-title {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

.metric-change {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.change-positive {
    color: #3CB371;
}

.change-negative {
    color: #e74c3c;
}

/* Estilos para o chat aprimorados */

/* Chat container */
.chat-container {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 20px;
    height: 70vh;
    display: flex;
    flex-direction: column;
}

/* Chat history */
.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 500px;
}

/* Container de mensagem com avatar */
.message-container {
    display: flex;
    margin: 5px 0;
    align-items: flex-end;
    animation: fadeIn 0.3s;
}

/* Mensagem do usuário */
.user-message {
    background-color: #007bff;
    color: white;
    border-radius: 18px 18px 4px 18px;
    padding: 10px 15px;
    max-width: 80%;
    margin-left: auto;
    word-wrap: break-word;
    position: relative;
}

/* Mensagem do assistente */
.assistant-message {
    background-color: #f1f3f4;
    color: #202123;
    border-radius: 18px 18px 18px 4px;
    padding: 10px 15px;
    max-width: 80%;
    margin-right: auto;
    word-wrap: break-word;
    position: relative;
}

/* Avatar */
.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    flex-shrink: 0;
    font-size: 14px;
}

/* Avatar do usuário */
.user-avatar {
    background-color: #404756;
    color: white;
}

/* Avatar do assistente */
.assistant-avatar {
    background-color: #10a37f;
    color: white;
}

/* Input e botão de envio */
.chat-input-container {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 0 0 10px 10px;
    display: flex;
    align-items: center;
}

.chat-input {
    flex: 1;
    border-radius: 20px !important;
    padding: 12px 15px !important;
    font-size: 14px !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

/* Indicador de digitação */
.typing-indicator {
    display: flex;
    padding: 10px 15px;
    background: #f1f3f4;
    border-radius: 18px 18px 18px 4px;
    width: fit-content;
    margin-top: 5px;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background: #10a37f;
    border-radius: 50%;
    margin: 0 2px;
    display: inline-block;
    animation: bounce 1.3s linear infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.15s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

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