/* Pipeline Styles */

.pipeline-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.pipeline-stat-card {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-green);
}

.pipeline-stat-card h4 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.pipeline-stat-card .stat-value {
    color: var(--primary-green);
    font-size: 2rem;
    font-weight: 700;
}

.pipeline-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.pipeline-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    min-height: 400px;
}

.pipeline-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 600;
}

.pipeline-section-title.hot {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border-left: 4px solid #ff4444;
}

.pipeline-section-title.warm {
    background: rgba(255, 165, 0, 0.1);
    color: #ffa500;
    border-left: 4px solid #ffa500;
}

.pipeline-section-title.cold {
    background: rgba(100, 149, 237, 0.1);
    color: #6495ed;
    border-left: 4px solid #6495ed;
}

.pipeline-leads {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lead-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s;
    cursor: pointer;
}

.lead-card:hover {
    border-color: var(--primary-green);
    box-shadow: 0 4px 12px rgba(129, 209, 26, 0.1);
    transform: translateY(-2px);
}

.lead-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.lead-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.lead-card-percentage {
    background: var(--primary-green);
    color: var(--bg-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.lead-card-atm {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.atm-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.atm-badge.active {
    background: rgba(129, 209, 26, 0.2);
    color: var(--primary-green);
}

.atm-badge.inactive {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.lead-card-notes {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lead-card-actions {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.lead-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.lead-btn-edit {
    background: var(--primary-green);
    color: var(--bg-primary);
}

.lead-btn-edit:hover {
    background: #6fb815;
}

.lead-btn-delete {
    background: #ff4444;
    color: white;
}

.lead-btn-delete:hover {
    background: #cc0000;
}

.no-leads {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.no-leads i {
    font-size: 3em;
    margin-bottom: 12px;
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 1024px) {
    .pipeline-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pipeline-stats {
        grid-template-columns: 1fr;
    }
    
    .lead-card {
        padding: 12px;
    }
    
    .lead-card-name {
        font-size: 1rem;
    }
}
