@import url('responsive.css');


/* Traffic Metrics - Main Stylesheet */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Card Styles */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.metric-card {
    cursor: pointer;
}

.metric-card:hover {
    transform: translateY(-3px);
}

/* Border Top Colors */
.border-top-success {
    border-top: 4px solid #28a745;
}

.border-top-primary {
    border-top: 4px solid #0d6efd;
}

.border-top-info {
    border-top: 4px solid #17a2b8;
}

.border-top-warning {
    border-top: 4px solid #ffc107;
}

.border-top-danger {
    border-top: 4px solid #dc3545;
}

/* Status Badge Colors */
.badge-ativo {
    background-color: #d4edda;
    color: #155724;
}

.badge-inativo {
    background-color: #fff3cd;
    color: #856404;
}

.badge-suspenso {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-pendente {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Lead Status Colors */
.status-novo {
    background-color: #cfe2ff;
    color: #084298;
}

.status-em-contato {
    background-color: #fff3cd;
    color: #856404;
}

.status-qualificado {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-convertido {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-desqualificado {
    background-color: #e7e8ea;
    color: #41464b;
}

.status-perdido {
    background-color: #f8d7da;
    color: #842029;
}

/* Table Styles */
.table th {
    font-weight: 600;
    color: #495057;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Chart Container */
.chart-container {
    position: relative;
    margin: auto;
    height: 300px;
}

/* Form Styles */
.form-control:focus, .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Animation */
.animate-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .card-header > div:last-child {
        margin-top: 1rem;
        width: 100%;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Source Icons */
.source-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.source-google {
    background-color: #f8f9fa;
    color: #4285F4;
}

.source-facebook {
    background-color: #f8f9fa;
    color: #3b5998;
}

.source-instagram {
    background-color: #f8f9fa;
    color: #e1306c;
}

.source-linkedin {
    background-color: #f8f9fa;
    color: #0077b5;
}

.source-referral {
    background-color: #f8f9fa;
    color: #28a745;
}

.source-direct {
    background-color: #f8f9fa;
    color: #6c757d;
}

/* Toast Styling */
.toast {
    background-color: #fff;
    border-left: 4px solid #0d6efd;
}

.toast.success {
    border-left-color: #28a745;
}

.toast.error {
    border-left-color: #dc3545;
}

.toast.warning {
    border-left-color: #ffc107;
}

.toast.info {
    border-left-color: #17a2b8;
}

/* Estilo geral das colunas */
#kanban-columns .col {
    min-width: 250px;
    max-width: 100%;
}

/* Estilo dos cards no kanban */
.kanban-card {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 10px;
    cursor: move;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: background-color 0.2s;
}

.kanban-card:hover {
    background-color: #e9ecef;
}

/* Quando uma coluna estÃ¡ sendo arrastada */
.sortable-ghost {
    opacity: 0.5;
}

/* EspaÃ§amento das colunas */
#kanban-columns .card {
    margin-bottom: 20px;
}

/* Para evitar quebra dos cards em colunas pequenas */
#kanban-columns {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    /* overflow-x: auto; */
    display: flex;
    flex-wrap: nowrap;
}

div.kanban-status-body {
    min-height: 70vh;
    height: 70vh;    
    overflow-y: auto;
}

#kanban-columns .card .card-header.text-center.fw-bold{
   position: sticky;
    top: 0;
    z-index: 2;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
}


.table-responsive{
    max-height: 600px; 
    overflow-y: auto;
}
 
.tr_lead:hover,
.table-responsive tr:hover,
.row_element:hover {
    cursor: pointer;
}


tr.tr_lead td.lead_name {
    max-width: 200px;
}