/* Estilos gerais */
:root {
    --primary-color: #4e73df;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
}

body {
    background-color: #f8f9fc;
    font-family: 'Nunito', sans-serif;
}

/* Navbar - garante que está acima de outros elementos */
.navbar {
    position: relative;
    z-index: 1030;
}

/* Dropdown do navbar precisa estar acima de tudo */
.navbar .dropdown-menu {
    z-index: 1035;
}

/* Cards personalizados */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    margin-bottom: 20px;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #e3e6f0;
    font-weight: bold;
    padding: 15px 20px;
}

/* Botões personalizados */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2e59d9;
    border-color: #2e59d9;
}

/* ==================== CORREÇÃO DOS GRADIENTES COM ALTA ESPECIFICIDADE ==================== */

/* Gradientes funcionais para card-headers - especificidade máxima */
.card .card-header.bg-gradient-primary,
div.card div.card-header.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    background-color: #667eea !important;
    color: #ffffff !important;
    border: none !important;
}

.card .card-header.bg-gradient-secondary,
div.card div.card-header.bg-gradient-secondary {
    background: linear-gradient(135deg, #858796 0%, #60616f 100%) !important;
    background-color: #858796 !important;
    color: #ffffff !important;
    border: none !important;
}

.card .card-header.bg-gradient-success,
div.card div.card-header.bg-gradient-success {
    background: linear-gradient(135deg, #1cc88a 0%, #13855c 100%) !important;
    background-color: #1cc88a !important;
    color: #ffffff !important;
    border: none !important;
}

.card .card-header.bg-gradient-info,
div.card div.card-header.bg-gradient-info {
    background: linear-gradient(135deg, #36b9cc 0%, #258b94 100%) !important;
    background-color: #36b9cc !important;
    color: #ffffff !important;
    border: none !important;
}

.card .card-header.bg-gradient-warning,
div.card div.card-header.bg-gradient-warning {
    background: linear-gradient(135deg, #f6c23e 0%, #dda20a 100%) !important;
    background-color: #f6c23e !important;
    color: #ffffff !important;
    border: none !important;
}

.card .card-header.bg-gradient-danger,
div.card div.card-header.bg-gradient-danger {
    background: linear-gradient(135deg, #e74a3b 0%, #c0392b 100%) !important;
    background-color: #e74a3b !important;
    color: #ffffff !important;
    border: none !important;
}

.card .card-header.bg-gradient-light,
div.card div.card-header.bg-gradient-light {
    background: linear-gradient(135deg, #f8f9fc 0%, #e3e6f0 100%) !important;
    background-color: #f8f9fc !important;
    color: #5a5c69 !important;
    border: none !important;
}

.card .card-header.bg-gradient-dark,
div.card div.card-header.bg-gradient-dark {
    background: linear-gradient(135deg, #5a5c69 0%, #373840 100%) !important;
    background-color: #5a5c69 !important;
    color: #ffffff !important;
    border: none !important;
}

/* Força cor branca para TODOS os elementos dentro dos headers gradientes */
.card .card-header.bg-gradient-primary *,
.card .card-header.bg-gradient-secondary *,
.card .card-header.bg-gradient-success *,
.card .card-header.bg-gradient-info *,
.card .card-header.bg-gradient-warning *,
.card .card-header.bg-gradient-danger *,
.card .card-header.bg-gradient-dark *,
div.card div.card-header.bg-gradient-primary *,
div.card div.card-header.bg-gradient-secondary *,
div.card div.card-header.bg-gradient-success *,
div.card div.card-header.bg-gradient-info *,
div.card div.card-header.bg-gradient-warning *,
div.card div.card-header.bg-gradient-danger *,
div.card div.card-header.bg-gradient-dark * {
    color: #ffffff !important;
}

/* Exceção para gradiente light */
.card .card-header.bg-gradient-light *,
div.card div.card-header.bg-gradient-light * {
    color: #5a5c69 !important;
}

/* Botões dentro de headers com gradiente */
.card .card-header.bg-gradient-primary .btn-light,
.card .card-header.bg-gradient-secondary .btn-light,
.card .card-header.bg-gradient-success .btn-light,
.card .card-header.bg-gradient-info .btn-light,
.card .card-header.bg-gradient-warning .btn-light,
.card .card-header.bg-gradient-danger .btn-light,
.card .card-header.bg-gradient-dark .btn-light,
div.card div.card-header .btn-light {
    color: #5a5c69 !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
}

.card .card-header.bg-gradient-primary .btn-light:hover,
.card .card-header.bg-gradient-secondary .btn-light:hover,
.card .card-header.bg-gradient-success .btn-light:hover,
.card .card-header.bg-gradient-info .btn-light:hover,
.card .card-header.bg-gradient-warning .btn-light:hover,
.card .card-header.bg-gradient-danger .btn-light:hover,
.card .card-header.bg-gradient-dark .btn-light:hover,
div.card div.card-header .btn-light:hover {
    color: #5a5c69 !important;
    background-color: rgba(255, 255, 255, 1) !important;
    border-color: rgba(255, 255, 255, 1) !important;
}

/* ==================== FIM CORREÇÃO DOS GRADIENTES ==================== */

/* Estilos para o Kanban */
.kanban-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px) !important; /* Aumentar altura total para quase toda a tela */
    min-height: 600px; /* Aumentar altura mínima */
    margin-bottom: 5px; /* Reduzir margem inferior */
}

/* Versão que usa toda a largura da tela */
.kanban-fullwidth {
    position: absolute;
    left: 0;
    right: 0;
    top: 60px; /* Reduzir espaço do topo */
    height: calc(100vh - 70px) !important; /* Aumentar altura para quase toda a tela */
    margin: 0;
    z-index: 5;
}

/* Botão flutuante do kanban - deve estar acima do footer */
.position-fixed.bottom-0.end-0.p-4 {
    z-index: 1020 !important;
    padding-bottom: 10px !important; /* Reduzir padding para ficar mais próximo da base */
}

/* Ajuste do container para página kanban */
.kanban-page {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

.kanban-board {
    display: flex;
    overflow-x: auto;
    padding: 5px 0; /* Reduzir padding */
    flex: 1;
    height: 100%;
}

.kanban-fullwidth .kanban-board {
    padding: 5px; /* Reduzir padding */
}

.kanban-column {
    flex: 0 0 300px;
    margin: 0 10px;
    background-color: #f1f3fa;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 100px) !important; /* Aumentar altura máxima das colunas */
    height: calc(100vh - 100px) !important; /* Definir altura fixa das colunas */
}

.kanban-fullwidth .kanban-column {
    flex: 1;
    min-width: 300px;
    height: calc(100vh - 100px) !important; /* Aumentar altura das colunas em fullwidth */
}

.kanban-column-header {
    font-weight: bold;
    padding: 10px;
    border-bottom: 1px solid #e3e6f0;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.kanban-column-items {
    overflow-y: auto;
    flex: 1;
    padding-right: 5px;
    height: calc(100vh - 180px) !important; /* Aumentar altura dos itens das colunas */
}

.kanban-item {
    background-color: white;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: move;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.kanban-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Estilo para scrollbar personalizada */
.kanban-column-items::-webkit-scrollbar {
    width: 6px;
}

.kanban-column-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.kanban-column-items::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.kanban-column-items::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Estilo para leads */
.lead-card {
    transition: transform 0.2s;
}

.lead-card:hover {
    transform: translateY(-3px);
}

/* Estilo para o calendário */
.calendar-day {
    height: 120px;
    overflow-y: auto;
    border: 1px solid #e3e6f0;
}

.calendar-event {
    padding: 5px;
    margin: 2px 0;
    border-radius: 3px;
    font-size: 0.8rem;
    background-color: var(--primary-color);
    color: white;
}

/* Estilos de login e registro */
.auth-card {
    max-width: 450px;
    margin: 5rem auto;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

/* Ajuste do footer para ficar abaixo do conteúdo e ser mais compacto */
footer {
    position: relative;
    z-index: 1010;
    padding: 2px 0 !important; /* Reduzir ainda mais o padding */
    line-height: 1 !important; /* Reduzido */
    min-height: 30px !important; /* Definir altura mínima pequena */
    height: 30px !important; /* Altura fixa pequena */
}

footer p {
    margin-bottom: 0 !important;
    font-size: 0.75rem !important; /* Reduzir ainda mais o tamanho da fonte */
    padding: 2px 0 !important; /* Adicionar padding mínimo */
}

/* Responsividade */
@media (max-width: 768px) {
    .kanban-board {
        flex-direction: column;
        height: auto;
        overflow-x: hidden;
    }
    
    .kanban-column {
        flex: 0 0 auto;
        margin: 10px 0;
        max-height: 400px;
    }
}

/* Corrigir letra K no kanban */
.kanban-container::before,
.kanban-board::before {
    display: none !important;
    content: none !important;
}

.kanban-container > *:not(.kanban-board),
.kanban-board > *:not(.kanban-column) {
    display: none !important;
} 