/* Compute CRM Frontend Styles */

/* CRM Widget styles for frontend display */
.compute-crm-customer-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.compute-crm-customer-card h3 {
    margin-top: 0;
    color: #0073aa;
    font-size: 18px;
}

.customer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.customer-field {
    display: flex;
    flex-direction: column;
}

.customer-field label {
    font-weight: 600;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.customer-field value {
    color: #333;
    font-size: 14px;
}

/* Activity feed styles */
.activity-feed {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.activity-item {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-left: 3px solid #0073aa;
    border-radius: 2px;
}

.activity-item .time {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.activity-item .title {
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.activity-item .description {
    font-size: 13px;
    color: #666;
}

/* Stats display */
.compute-crm-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-box.orders {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-box.value {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-box.deals {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-box .number {
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-box .label {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .customer-info {
        grid-template-columns: 1fr;
    }

    .compute-crm-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-box .number {
        font-size: 24px;
    }
}
