/* CRM Specific Styles */

/* Dashboard Cards */
.crm-stats-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.crm-stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.crm-stats-card .card-body {
    padding: 2rem;
}

.crm-stats-card h5 {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.crm-stats-card h2 {
    font-weight: 700;
    margin-bottom: 0;
}

/* Status Badges */
.status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-novo { background-color: #6c757d; }
.status-contactado { background-color: #17a2b8; }
.status-qualificado { background-color: #28a745; }
.status-proposta { background-color: #ffc107; color: #212529; }
.status-fechado { background-color: #007bff; }
.status-perdido { background-color: #dc3545; }

/* Priority Badges */
.priority-alta { background-color: #dc3545; }
.priority-media { background-color: #ffc107; color: #212529; }
.priority-baixa { background-color: #6c757d; }

/* CRM Table Enhancements */
.crm-table {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.crm-table thead th {
    background-color: #f8f9fa;
    border: none;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 1rem;
}

.crm-table tbody tr {
    border: none;
    transition: background-color 0.2s ease;
}

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

.crm-table tbody td {
    border: none;
    padding: 1rem;
    vertical-align: middle;
}

/* Form Enhancements */
.crm-form .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.crm-form .form-control,
.crm-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.crm-form .form-control:focus,
.crm-form .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
}

/* Timeline Styles */
.crm-timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 20px;
}

.crm-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #007bff, #6c757d);
}

.crm-timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding-left: 25px;
}

.crm-timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #007bff;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #007bff;
}

.crm-timeline-item h6 {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 5px;
}

.crm-timeline-item .text-muted {
    font-size: 0.85rem;
}

/* Action Buttons */
.crm-action-btn {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
}

.crm-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.crm-action-btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 15px;
}

/* Filter Card */
.crm-filter-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.crm-filter-card .card-body {
    padding: 1.5rem;
}

/* Lead Generation Specific */
.lead-gen-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.lead-source-option {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lead-source-option:hover {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.lead-source-option.active {
    border-color: #007bff;
    background-color: #e7f3ff;
}

/* Progress Bar Enhancement */
.crm-progress {
    height: 8px;
    border-radius: 10px;
    background-color: #e9ecef;
}

.crm-progress .progress-bar {
    border-radius: 10px;
    background: linear-gradient(90deg, #007bff, #0056b3);
}

/* Modal Enhancements */
.crm-modal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.crm-modal .modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 15px 15px 0 0;
}

.crm-modal .modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 15px 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .crm-stats-card .card-body {
        padding: 1.5rem;
    }
    
    .crm-stats-card h2 {
        font-size: 1.5rem;
    }
    
    .crm-table thead th,
    .crm-table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .crm-timeline {
        padding-left: 20px;
    }
    
    .crm-timeline-item {
        padding-left: 15px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .crm-stats-card {
        background-color: #2d3748;
        color: #e2e8f0;
    }
    
    .crm-table thead th {
        background-color: #4a5568;
        color: #e2e8f0;
    }
    
    .crm-table tbody tr:hover {
        background-color: #4a5568;
    }
    
    .crm-form .form-control,
    .crm-form .form-select {
        background-color: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-in-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}