/**
 * Estilos Base - Casal Mentoria Dashboard Modular
 * Estilos mínimos - a maioria será customizada no Elementor
 */

/* ========== Reset e Base ========== */
.cmm-dashboard * {
    box-sizing: border-box;
}

/* ========== Cards de Estatística ========== */
.cmm-stats-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cmm-stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cmm-stats-icon {
    font-size: 32px;
    opacity: 0.8;
}

.cmm-stats-content {
    flex: 1;
}

.cmm-stats-value {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
    margin: 5px 0;
}

.cmm-stats-label {
    font-size: 14px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cmm-loading {
    opacity: 0.5;
}

/* ========== Pipeline ========== */
.cmm-pipeline-stage {
    min-width: 250px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.cmm-stage-header {
    background: #fff;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cmm-stage-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cmm-stage-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: #3498db;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.cmm-stage-content {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cmm-empty-stage {
    text-align: center;
    padding: 40px 20px;
    color: #95a5a6;
    font-style: italic;
}

.cmm-loading-stage {
    text-align: center;
    padding: 20px;
    color: #95a5a6;
}

/* ========== Lead Cards ========== */
.cmm-lead-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.cmm-lead-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.cmm-draggable {
    cursor: move;
}

.cmm-dragging {
    opacity: 0.5;
}

.cmm-drag-over {
    background: #e3f2fd;
    border: 2px dashed #2196f3;
}

.cmm-lead-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cmm-lead-name {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.cmm-product-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.cmm-product-badge.mentoria {
    background: #e8f5e9;
    color: #2e7d32;
}

.cmm-product-badge.mastermind {
    background: #e3f2fd;
    color: #1565c0;
}

.cmm-lead-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.cmm-lead-info {
    font-size: 12px;
    color: #546e7a;
}

.cmm-lead-notes {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #ecf0f1;
    font-size: 12px;
    color: #7f8c8d;
}

/* ========== Lista de Leads ========== */
.cmm-lead-list-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
}

.cmm-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cmm-filter-input,
.cmm-filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.cmm-filter-input {
    flex: 1;
    min-width: 200px;
}

.cmm-table-wrapper {
    overflow-x: auto;
}

.cmm-table {
    width: 100%;
    border-collapse: collapse;
}

.cmm-table thead {
    background: #f8f9fa;
}

.cmm-table th,
.cmm-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #dee2e6;
}

.cmm-table th {
    font-weight: 600;
    color: #495057;
}

.cmm-table tbody tr:hover {
    background: #f8f9fa;
}

.cmm-status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.cmm-status-badge.status-novo { background: #e3f2fd; color: #1565c0; }
.cmm-status-badge.status-atendendo { background: #fff3e0; color: #e65100; }
.cmm-status-badge.status-triando { background: #f3e5f5; color: #6a1b9a; }
.cmm-status-badge.status-quente { background: #ffebee; color: #c62828; }
.cmm-status-badge.status-frio { background: #e0f2f1; color: #00695c; }
.cmm-status-badge.status-fechando { background: #fff9c4; color: #f57f17; }
.cmm-status-badge.status-aguardando { background: #fce4ec; color: #ad1457; }
.cmm-status-badge.status-ganho { background: #e8f5e9; color: #2e7d32; }
.cmm-status-badge.status-perdido { background: #ffebee; color: #c62828; }

.cmm-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.cmm-pagination-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.cmm-pagination-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #3498db;
}

.cmm-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cmm-pagination-info {
    font-size: 14px;
    color: #495057;
}

/* ========== Resumo de Comissões ========== */
.cmm-commission-summary {
    background: white;
    border-radius: 8px;
    padding: 20px;
}

.cmm-commission-period {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.cmm-commission-label {
    font-weight: 600;
    color: #7f8c8d;
}

.cmm-total-section {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.cmm-total-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cmm-total-highlight .cmm-commission-label,
.cmm-total-highlight .cmm-total-value {
    color: white;
}

.cmm-total-value {
    font-size: 36px;
    font-weight: bold;
    color: #2c3e50;
    margin-top: 10px;
}

.cmm-breakdown-section {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.cmm-breakdown-title {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #2c3e50;
}

.cmm-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.cmm-breakdown-item:last-child {
    border-bottom: none;
}

.cmm-breakdown-value {
    font-weight: 600;
    color: #2c3e50;
}

.cmm-breakdown-note {
    display: block;
    font-size: 11px;
    color: #7f8c8d;
    margin-top: 4px;
}

.cmm-breakdown-divider {
    height: 2px;
    background: #e0e0e0;
    margin: 15px 0;
}

.cmm-sales-summary {
    display: flex;
    gap: 15px;
    font-size: 14px;
}

/* ========== Botões de Ação ========== */
.cmm-button-wrapper {
    display: inline-block;
}

.cmm-action-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.cmm-action-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.cmm-button-icon {
    display: flex;
    align-items: center;
}

/* ========== Navegação de Abas ========== */
.cmm-tabs-navigation {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 2px solid #ecf0f1;
}

.cmm-tab-button {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    font-weight: 600;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s;
}

.cmm-tab-button:hover {
    color: #3498db;
}

.cmm-tab-button.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

/* ========== Animações ========== */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========== Responsividade ========== */
@media (max-width: 768px) {
    .cmm-pipeline-stage {
        min-width: 100%;
    }
    
    .cmm-filters {
        flex-direction: column;
    }
    
    .cmm-filter-input {
        width: 100%;
    }
    
    .cmm-table-wrapper {
        overflow-x: scroll;
    }
}

/* ========== Utilitários ========== */
.cmm-hidden {
    display: none !important;
}

.cmm-text-center {
    text-align: center;
}

.cmm-mt-20 {
    margin-top: 20px;
}

.cmm-mb-20 {
    margin-bottom: 20px;
}
