/**
 * ConvertyBot Admin Analytics Styles
 * Extracted from templates/admin/analytics.php for WordPress compliance
 */

/* Product Details Modal Styles */
.large-modal .modal-content {
    max-width: 800px;
    width: 90%;
}

.product-details-grid {
    display: grid;
    gap: 24px;
}

.detail-section {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.detail-section h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e8e8e8;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: #666;
    font-size: 14px;
}

.detail-value {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.detail-value.highlight {
    color: #28a745;
    font-size: 18px;
}

.insights-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.insight {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.insight.positive {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.insight.warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #666;
}

.loading-state .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .large-modal .modal-content {
        width: 95%;
        max-width: none;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
