:root {
    --primary-color: #4F46E5;
    --primary-dark: #4338ca;
    --secondary-color: #64748B;
    --bg-light: #F8FAFC;
    --sidebar-bg: #1E293B;
    --text-dark: #0F172A;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden; /* Evita scroll horizontal na animação */
}

/* Layout Wrapper */
.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: stretch;
}

/* Sidebar */
#sidebar {
    min-width: 260px;
    max-width: 260px;
    background: var(--sidebar-bg);
    color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

/* Sidebar Header */
#sidebar .sidebar-header {
    padding: 20px;
    background: rgba(0,0,0,0.1);
}

/* Sidebar Links */
#sidebar ul.components {
    padding: 10px 0;
}

#sidebar ul li a {
    padding: 12px 20px;
    display: block;
    color: #94a3b8;
    text-decoration: none;
    transition: 0.2s;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}

#sidebar ul li a:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

#sidebar ul li a.active {
    color: #fff;
    background: rgba(79, 70, 229, 0.1); /* Primary color com opacidade */
    border-left: 3px solid var(--primary-color);
}

#sidebar ul li a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* Content Area */
#content {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

/* =========================================
   COMPORTAMENTO RESPONSIVO
   ========================================= */

/* Desktop (Largura > 768px) */
@media (min-width: 769px) {
    /* Estado Normal: Sidebar visível */
    
    /* Estado Ativo (quando clica no botão): Esconde sidebar */
    #sidebar.active {
        margin-left: -260px;
    }
}

/* Mobile (Largura <= 768px) */
@media (max-width: 768px) {
    /* Estado Normal: Sidebar escondido */
    #sidebar {
        margin-left: -260px;
        position: fixed;
        height: 100vh;
        box-shadow: 5px 0 15px rgba(0,0,0,0.2);
    }
    
    /* Estado Ativo: Sidebar aparece (gaveta) */
    #sidebar.active {
        margin-left: 0;
    }
    
    /* Overlay opcional para escurecer o fundo quando menu abre */
    #sidebar.active + #content::after {
        content: '';
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 900;
        pointer-events: none; 
    }
}

/* Utilities */
.cursor-pointer {
    cursor: pointer;
}

/* Cards e Elementos */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.badge-status {
    padding: 6px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.status-new { background-color: #E0F2FE; color: #0284C7; }
.status-contacting { background-color: #FEF3C7; color: #D97706; }
.status-meeting_set { background-color: #DCFCE7; color: #16A34A; }
.status-lost { background-color: #FEE2E2; color: #DC2626; }